Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread TParser Example.
Wed, Jul 8 2015 12:05 AMPermanent Link

Steve Gill

Avatar

I am thinking of changing the way I POST data to URLs by sending it in JSON format instead.  Are there any examples that show how to use TParser to encode the data to send as JSON, and then decode the JSON data received?

Thanks.

= Steve
Wed, Jul 8 2015 10:09 AMPermanent Link

D.C.

>Steve Gill wrote:

>I am thinking of changing the way I POST data to URLs by sending it in JSON format instead.  Are there any >examples that show how to use TParser to encode the data to send as JSON, and then decode the JSON data >received?

>Thanks.

>= Steve

+1 Smile
Thu, Jul 9 2015 2:18 AMPermanent Link

Godfrey

Ultimatesoft

Steve Gill wrote:

I am thinking of changing the way I POST data to URLs by sending it in JSON format instead.  Are there any examples that show how to use TParser to encode the data to send as JSON, and then decode the JSON data received?

+1
Thu, Jul 9 2015 3:36 AMPermanent Link

Mark Brooks

Slikware

Avatar

Steve Gill wrote:

>>I am thinking of changing the way I POST data to URLs by sending it in JSON format instead.  Are there any >>examples that show how to use TParser to encode the data to send as JSON, and then decode the JSON data >>received?

If you're using EWB2 then TWriter is the class to look at. Makes it very simple indeed.
Thu, Jul 9 2015 3:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< I am thinking of changing the way I POST data to URLs by sending it in
JSON format instead.  Are there any examples that show how to use TParser to
encode the data to send as JSON, and then decode the JSON data received? >>

What you want are the TReader and TWriter classes for reading/writing
TPersistent-and-descendant class instances.  There's an example project
included with EWB2 called persistence that shows how to do it.

This is it running live:

http://www.elevatesoft.com:8081/persistence/persistence.html

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 9 2015 6:14 PMPermanent Link

Steve Gill

Avatar

<< What you want are the TReader and TWriter classes for reading/writing
TPersistent-and-descendant class instances.  There's an example project
included with EWB2 called persistence that shows how to do it.

This is it running live:

http://www.elevatesoft.com:8081/persistence/persistence.html

If you have any other questions, please let me know.  >>

Thanks Tim and Mark, I didn't know those two classes even existed. Smile

= Steve
Fri, Jul 10 2015 3:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< Thanks Tim and Mark, I didn't know those two classes even existed. Smile>>

Without the TReader class, forms could not be loaded at application startup.
Smile

Tim Young
Elevate Software
www.elevatesoft.com
Image