Re: [WebDNA] JSONobject

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115186
interpreted = N
texte = 2815 --Apple-Mail-07288FE1-9466-43E0-8C79-D9B311A511B6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Stuart, Thanks for your reply. Any of the alternatives you are mentioning would work= for me. Right now I=E2=80=99m blind and I don=E2=80=99t know if WebDNA will= be able to capture the payload so I=E2=80=99m open to consider any option. I=E2=80=99m using version 8.5.1 of the accelerated FastCGI on Linux=20 @Tom, as I mentioned on my previous email, I tried using [formvariables] and= unfortunately didn=E2=80=99t work. Best, Cristi=C3=A1n > El 16-09-2020, a la(s) 20:23, talk@webdna.us escribi=C3=B3: > =EF=BB=BFHi Christian >=20 > Do you mean that you want to save the response as a text file or do you wa= nt to save the JSON pairs to a db ? >=20 > Or do you just need to break down the JSON into "name=3Dvalue" pairs ? >=20 > What version of WebNDA are you using - there have been sone nice JSON usag= e updates in the newer versions. >=20 > This is a good place to start: http://webdna.us/page.dna?numero=3D307 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au >=20 >=20 >=20 >=20 >=20 >=20 >=20 >> 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 ho= w to capture a JSON payload that=E2=80=99s being sent via POST to a .tpl wit= h 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","na= me":"John","last":"Doe","email":"johndoe@gmail.com","phone":"999999999"},"ca= r":{"id_model":4057,"license":"","year":"2006","brand":"CHEVROLET","model":"= COMBO VAN","version":"1.3 DIESEL PL AB ABS MT 5P","miles":null},"quote":{"pr= ice":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 s= erver sends the POST and the other party replies with a JSON, but this is th= e 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 T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-07288FE1-9466-43E0-8C79-D9B311A511B6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello Stuart,

<= div>Thanks for your reply. Any of the alternatives you are mentioning would w= ork for me. Right now I=E2=80=99m blind and I don=E2=80=99t know if WebDNA w= ill be able to capture the payload so I=E2=80=99m open to consider any optio= n.

I=E2=80=99m using version 8.5.1 of the accelerat= ed FastCGI on Linux 

@Tom, as I mentioned on m= y previous email, I tried using [formvariables] and unfortunately didn=E2=80= =99t work.


Best,
Cristi=C3=A1n

El 16-09-2020= , a la(s) 20:23, talk@webdna.us escribi=C3=B3:

=EF=BB=BFHi Christian
Do you mean that you want to save the res= ponse as a text file or do you want to save the JSON pairs to a db ?

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

What version of WebNDA are you using - there hav= e 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 1= 7 Sep 2020, at 06:25, talk@webd= na.us wrote:

Hello everyone!

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

This is the post being sent:

curl -X 'POST' 'https://myhost.com/callback.tpl'; -H 'connection: close' -H 'content-leng= th: 396' -H 'content-type: application/json' -H 'accept: */*' -H 'host:&= nbsp;myhost.com<= /a>' -d $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":= "Doe","email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4057,"licen= se":"","year":"2006","brand":"CHEVROLET","model":"COMBO VAN","version":"1.3 D= IESEL PL AB ABS MT 5P","miles":null},"quote":{"price":1210000,"price_min":59= 0000,"price_max":2180000},"id_transaction":11}'

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

[formvariables][value][/formvariables] is not working and I guess it does no= t 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: h= ttp://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdn= a.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-07288FE1-9466-43E0-8C79-D9B311A511B6-- . 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)
2815 --Apple-Mail-07288FE1-9466-43E0-8C79-D9B311A511B6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Stuart, Thanks for your reply. Any of the alternatives you are mentioning would work= for me. Right now I=E2=80=99m blind and I don=E2=80=99t know if WebDNA will= be able to capture the payload so I=E2=80=99m open to consider any option. I=E2=80=99m using version 8.5.1 of the accelerated FastCGI on Linux=20 @Tom, as I mentioned on my previous email, I tried using [formvariables] and= unfortunately didn=E2=80=99t work. Best, Cristi=C3=A1n > El 16-09-2020, a la(s) 20:23, talk@webdna.us escribi=C3=B3: > =EF=BB=BFHi Christian >=20 > Do you mean that you want to save the response as a text file or do you wa= nt to save the JSON pairs to a db ? >=20 > Or do you just need to break down the JSON into "name=3Dvalue" pairs ? >=20 > What version of WebNDA are you using - there have been sone nice JSON usag= e updates in the newer versions. >=20 > This is a good place to start: http://webdna.us/page.dna?numero=3D307 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@plsoftware.com.au >=20 >=20 >=20 >=20 >=20 >=20 >=20 >> 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 ho= w to capture a JSON payload that=E2=80=99s being sent via POST to a .tpl wit= h 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","na= me":"John","last":"Doe","email":"johndoe@gmail.com","phone":"999999999"},"ca= r":{"id_model":4057,"license":"","year":"2006","brand":"CHEVROLET","model":"= COMBO VAN","version":"1.3 DIESEL PL AB ABS MT 5P","miles":null},"quote":{"pr= ice":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 s= erver sends the POST and the other party replies with a JSON, but this is th= e 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 T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-07288FE1-9466-43E0-8C79-D9B311A511B6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello Stuart,

<= div>Thanks for your reply. Any of the alternatives you are mentioning would w= ork for me. Right now I=E2=80=99m blind and I don=E2=80=99t know if WebDNA w= ill be able to capture the payload so I=E2=80=99m open to consider any optio= n.

I=E2=80=99m using version 8.5.1 of the accelerat= ed FastCGI on Linux 

@Tom, as I mentioned on m= y previous email, I tried using [formvariables] and unfortunately didn=E2=80= =99t work.


Best,
Cristi=C3=A1n

El 16-09-2020= , a la(s) 20:23, talk@webdna.us escribi=C3=B3:

=EF=BB=BFHi Christian
Do you mean that you want to save the res= ponse as a text file or do you want to save the JSON pairs to a db ?

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

What version of WebNDA are you using - there hav= e 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 1= 7 Sep 2020, at 06:25, talk@webd= na.us wrote:

Hello everyone!

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

This is the post being sent:

curl -X 'POST' 'https://myhost.com/callback.tpl'; -H 'connection: close' -H 'content-leng= th: 396' -H 'content-type: application/json' -H 'accept: */*' -H 'host:&= nbsp;myhost.com<= /a>' -d $'{"id_account":1,"client":{"rut":"11111111-1","name":"John","last":= "Doe","email":"johndoe@gmail.com","phone":"999999999"},"car":{"id_model":4057,"licen= se":"","year":"2006","brand":"CHEVROLET","model":"COMBO VAN","version":"1.3 D= IESEL PL AB ABS MT 5P","miles":null},"quote":{"price":1210000,"price_min":59= 0000,"price_max":2180000},"id_transaction":11}'

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

[formvariables][value][/formvariables] is not working and I guess it does no= t 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: h= ttp://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdn= a.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-07288FE1-9466-43E0-8C79-D9B311A511B6-- . =?utf-8?Q?Cristi=C3=A1n_Tapia?=

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:

[REPLACE] inside [FOUNDITEMS] (1998) Here we go again... was: DDEConnect not working (2006) japanese characters (1997) Big Databases (1997) credit card (1997) WebCatalog Work (2001) upgrading (1997) shipcost (1997) format_to_days on NT (1997) Document Contains No Data! (1997) Follow-Up to: Removing [showif] makes a big difference in speed (1997) yourpay.com (2004) [SearchString] usage (1997) BIG PROBLEMS with Checkboxes!!! (1998) snicker, snicker (1997) WebCat2 - [include] tags (1997) Error: this shopping cart has already been submitted and (2006) [WebDNA] Best WebDNA version for OS X Server 10.5.8 on PowerPC? (2010) WebDNA Developer Resource Center (2002) RAM variables (1997)