Re: [WebDNA] JSONobject

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115184
interpreted = N
texte = 2813 --0000000000004e2bc305af746ece Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cristi=C3=A1n, Hi - try using [formvariables][name][/formvariables] to catch the JSON. - Tom On Wed, 16 Sep 2020 at 21:26, wrote: > Hello everyone! > > 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 wi= th 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":4057,"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.u= s --0000000000004e2bc305af746ece Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cristi=C3=A1n,

Hi - tr= y using=C2=A0[formvariables][name][/formvariables] to catch the JSON.
=

- Tom


On Wed, 16 Sep 2020 at = 21:26, <talk@webdna.us> wrote:<= br>
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: applica= tion/json' -H 'accept: */*' -H 'host:=C2=A0myhost.com' -d $'{"id_acco= unt":1,"client":{"rut":"11111111-1",&quo= t;name":"John","last":"Doe","email&= quot;:"johndoe@= gmail.com","phone":"999999999"},"car"= ;:{"id_model":4057,"license":"","year&qu= ot;:"2006","brand":"CHEVROLET","model&qu= ot;:"COMBO VAN","version":"1.3 DIESEL PL AB ABS MT= 5P","miles":null},"quote":{"price":1210= 000,"price_min":590000,"price_max":2180000},"id_tr= ansaction":11}'

I=E2=80=99ve used [JSONstore] successfully in the past, but only when my se= rver 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.

[formvariables][value][/formvariables] is not working and I guess it does n= ot 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@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@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 --0000000000004e2bc305af746ece-- . 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)
2813 --0000000000004e2bc305af746ece Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cristi=C3=A1n, Hi - try using [formvariables][name][/formvariables] to catch the JSON. - Tom On Wed, 16 Sep 2020 at 21:26, wrote: > Hello everyone! > > 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 wi= th 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":4057,"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.u= s --0000000000004e2bc305af746ece Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Cristi=C3=A1n,

Hi - tr= y using=C2=A0[formvariables][name][/formvariables] to catch the JSON.
=

- Tom


On Wed, 16 Sep 2020 at = 21:26, <talk@webdna.us> wrote:<= br>
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: applica= tion/json' -H 'accept: */*' -H 'host:=C2=A0myhost.com' -d $'{"id_acco= unt":1,"client":{"rut":"11111111-1",&quo= t;name":"John","last":"Doe","email&= quot;:"johndoe@= gmail.com","phone":"999999999"},"car"= ;:{"id_model":4057,"license":"","year&qu= ot;:"2006","brand":"CHEVROLET","model&qu= ot;:"COMBO VAN","version":"1.3 DIESEL PL AB ABS MT= 5P","miles":null},"quote":{"price":1210= 000,"price_min":590000,"price_max":2180000},"id_tr= ansaction":11}'

I=E2=80=99ve used [JSONstore] successfully in the past, but only when my se= rver 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.

[formvariables][value][/formvariables] is not working and I guess it does n= ot 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@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@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 --0000000000004e2bc305af746ece-- . Tom Duke

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:

Cart # Starting at 1000 (2000) Re[2]: shipCost -vs- shippingtotal ? (2000) Quit revisited (1997) [referrer] tag (1997) [WebDNA] reCAPTCHA and WebDNA (2010) Exclamation point (1997) Download Question (1997) Emailer port change (1997) WebCatalog2 Feature Feedback (1996) LookUp Tag (1997) WebCat2b13MacPlugIn - [include] (1997) Unexpected comparison behavior change in 4.5.1 (2003) Major problem (1999) This is an odd error (2001) send mail problem? (1997) Hiding HTML and page breaks (1997) Subtotal and Grand Total Changes (2000) MacActivity and PCS (1997) & in Lookups (1997) Sort Order on a page search (1997)