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:

WebCatalog2 Feature Feedback (1996) Location of Browser Info.txt file (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Comments in db? (1997) Another question (1997) emailer (1997) Grep Help (2003) Using Encrypt/Decrypt (2003) Search in 2 or more catalogs (1997) Some Questions (1997) Re:quit command on NT (1997) One more try (1997) multi-paragraph fields (1997) WCS Newbie question (1997) displaying New products (using [date]) (1997) Single Link browsing (1997) 6.1 Patch - Form Data Back Button Issue (2006) Include a big block of text (1997) Multiple Pulldowns (1997) The beginning (1997)