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:

[OT] Test (2003) Removing [showif] makes a big difference in speed (1997) Missing something simple? (1999) validatin on NT (sorry for the dups and etc) (1998) Dates (1996) Max Record length restated as maybe bug (1997) Navigator Parsing (1997) Why is [lookup] case sensitive? (2001) WebCat2 - [SendNews] (1997) How to append text after the sign & (1997) LOOKUP and Math operations (2001) X etc.... (1999) [WebDNA] Databases not staying open (2010) Re:ListFields and [name] (1997) Close-to Comparison Code (1998) FW: ANother SHOWIF problem (1997) [WebDNA] Help me install (WebDNA 7 fastcgi install on Lion 10.7.3) (2012) [CART] inside a [LOOP] (1997) [ConvertChars] problem (1997) NT vs Mac (1997)