Re: [WebDNA] JSONobject

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115185
interpreted = N
texte = 2814 --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Christian Do you mean that you want to save the response as a text file or do you = want to save the JSON pairs to a db ? Or do you just need to break down the JSON into "name=3Dvalue" pairs ? What version of WebNDA are you using - there have been sone nice JSON = usage updates in the newer versions. This is a good place to start: http://webdna.us/page.dna?numero=3D307 Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 17 Sep 2020, at 06:25, talk@webdna.us wrote: >=20 > Hello everyone! >=20 > Thanks in advance for any help on this topic. Anyone has experience on = how to capture a JSON payload that=E2=80=99s being sent via POST to a = ..tpl with WebDNA?. >=20 > This is the post being sent: >=20 > curl -X 'POST' 'https://myhost.com/callback.tpl'; -H 'connection: = close' -H 'content-length: 396' -H 'content-type: application/json' -H = 'accept: */*' -H 'host: myhost.com ' -d = $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",= "email":"johndoe@gmail.com = ","phone":"999999999"},"car":{"id_model":4057,"l= icense":"","year":"2006","brand":"CHEVROLET","model":"COMBO = VAN","version":"1.3 DIESEL PL AB ABS MT = 5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":= 2180000},"id_transaction":11}' >=20 > I=E2=80=99ve used [JSONstore] successfully in the past, but only when = my server sends the POST and the other party replies with a JSON, but = this is the first time I=E2=80=99m receiving a payload that needs to be = saved. >=20 > [formvariables][value][/formvariables] is not working and I guess it = does not apply for this kind of data. >=20 > Thanks in advance for any help. > Best, > Cristi=C3=A1n > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Christian

Do you = mean that you want to save the response as a text file or do you want to = save the JSON pairs to a db ?

Or do you just need to break down the = JSON into "name=3Dvalue" pairs ?

What version of WebNDA are you using - = there have been sone nice JSON usage updates in the newer = versions.

This = is a good place to start: http://webdna.us/page.dna?numero=3D307

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 17 Sep 2020, at 06:25, talk@webdna.us wrote:

Hello everyone!

Thanks in advance for any help on this topic. Anyone has experience on = how to capture a JSON payload that=E2=80=99s being sent via POST to a = ..tpl with WebDNA?.

This is the post being sent:

curl -X 'POST' 'https://myhost.com/callback.tpl'; -H = 'connection: close' -H 'content-length: 396' -H 'content-type: = application/json' -H 'accept: */*' -H 'host: myhost.com' = -d = $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",= "email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4= 057,"license":"","year":"2006","brand":"CHEVROLET","model":"COMBO = VAN","version":"1.3 DIESEL PL AB ABS MT = 5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":= 2180000},"id_transaction":11}'

I=E2=80=99ve used [JSONstore] successfully in the past, but only when my = server sends the POST and the other party replies with a JSON, but this = is the first time I=E2=80=99m receiving a payload that needs to be = saved.

[formvariables][value][/formvariables] is not working and I guess it = does not apply for this kind of data.

Thanks in advance for any help.
Best,
Cristi=C3=A1n
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] JSONobject (Tom Duke 2020)
  2. Re: [WebDNA] JSONobject (=?utf-8?Q?Cristi=C3=A1n_Tapia?= 2020)
  3. Re: [WebDNA] JSONobject (Stuart Tremain 2020)
  4. Re: [WebDNA] JSONobject (Tom Duke 2020)
  5. [WebDNA] JSONobject (=?utf-8?Q?Cristi=C3=A1n_Tapia?= 2020)
2814 --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Christian Do you mean that you want to save the response as a text file or do you = want to save the JSON pairs to a db ? Or do you just need to break down the JSON into "name=3Dvalue" pairs ? What version of WebNDA are you using - there have been sone nice JSON = usage updates in the newer versions. This is a good place to start: http://webdna.us/page.dna?numero=3D307 Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 17 Sep 2020, at 06:25, talk@webdna.us wrote: >=20 > Hello everyone! >=20 > Thanks in advance for any help on this topic. Anyone has experience on = how to capture a JSON payload that=E2=80=99s being sent via POST to a = ..tpl with WebDNA?. >=20 > This is the post being sent: >=20 > curl -X 'POST' 'https://myhost.com/callback.tpl'; -H 'connection: = close' -H 'content-length: 396' -H 'content-type: application/json' -H = 'accept: */*' -H 'host: myhost.com ' -d = $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",= "email":"johndoe@gmail.com = ","phone":"999999999"},"car":{"id_model":4057,"l= icense":"","year":"2006","brand":"CHEVROLET","model":"COMBO = VAN","version":"1.3 DIESEL PL AB ABS MT = 5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":= 2180000},"id_transaction":11}' >=20 > I=E2=80=99ve used [JSONstore] successfully in the past, but only when = my server sends the POST and the other party replies with a JSON, but = this is the first time I=E2=80=99m receiving a payload that needs to be = saved. >=20 > [formvariables][value][/formvariables] is not working and I guess it = does not apply for this kind of data. >=20 > Thanks in advance for any help. > Best, > Cristi=C3=A1n > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Christian

Do you = mean that you want to save the response as a text file or do you want to = save the JSON pairs to a db ?

Or do you just need to break down the = JSON into "name=3Dvalue" pairs ?

What version of WebNDA are you using - = there have been sone nice JSON usage updates in the newer = versions.

This = is a good place to start: http://webdna.us/page.dna?numero=3D307

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 17 Sep 2020, at 06:25, talk@webdna.us wrote:

Hello everyone!

Thanks in advance for any help on this topic. Anyone has experience on = how to capture a JSON payload that=E2=80=99s being sent via POST to a = ..tpl with WebDNA?.

This is the post being sent:

curl -X 'POST' 'https://myhost.com/callback.tpl'; -H = 'connection: close' -H 'content-length: 396' -H 'content-type: = application/json' -H 'accept: */*' -H 'host: myhost.com' = -d = $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":"Doe",= "email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4= 057,"license":"","year":"2006","brand":"CHEVROLET","model":"COMBO = VAN","version":"1.3 DIESEL PL AB ABS MT = 5P","miles":null},"quote":{"price":1210000,"price_min":590000,"price_max":= 2180000},"id_transaction":11}'

I=E2=80=99ve used [JSONstore] successfully in the past, but only when my = server sends the POST and the other party replies with a JSON, but this = is the first time I=E2=80=99m receiving a payload that needs to be = saved.

[formvariables][value][/formvariables] is not working and I guess it = does not apply for this kind of data.

Thanks in advance for any help.
Best,
Cristi=C3=A1n
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_055FF0CF-8FF4-4952-9C6E-1FA3ECF4F548-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

grep twice or a better way.... (2007) possible, WebCat2.0 and checkboxes-restated (1997) [WebDNA] SCOPE:, ---- was:--- Date: header on emails - timezone problem perhaps (emai) Hyperboard users wanting a quoted message (1998) Webstar 1.3.1 PPC (1997) Formulas.db question (2002) Concatenating Form Variables (1998) b12 cannot limit records returned and more. (1997) SMSI (Scott) clues?? (2005) Bug Report, maybe (1997) counting characters and/or words (1997) [taxRate] [TaxTotal] ? (1997) Don't do this! (was: Crashing Type 3) (1999) [showif [numfound]=0]? (2000) Refering page (1998) Re(2): MASTER_STORE revision (2002) [WebDNA] WebSite Examples (2008) notification solutions (1997) dos performance (1998) 2 databases problem (1997)