Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread JSON direct?
Fri, Jul 5 2013 11:24 AMPermanent Link

Matthew Jones

> First of all I prefere properties like AsString[], etc.

I don't mind how it looks, but normally AsString is a property/function that
returns an object as a string, rather than returns a value from the object. I don't
care though - the facility is what I want. 8-)

> To have acces to hierarchical structure would be important.
My idea would give you direct access to any part because it is just a sneaky way to
insert some javascript into the output.

> And also
> the possibility to get an element as JSON object.
Yes, that makes sense. Could be like:
NewJSON := MyJSON.GetJSONItem('mydata[7].subobject');


/Matthew Jones/
Mon, Jul 8 2013 2:26 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Is this capability available to me in EWB? If not, could it be? >>

It's on the list of things to be dealt with.  I'm still not sure if I'm
going to do an approach like what Christian came up with (very nice design)
or something with "published" properties, but in the end it will give you
"native" JSON in the sense that normal TObjects will be able to persist to
and from strings without any "noticeable" parsing on your part.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jul 10 2013 12:58 AMPermanent Link

MarkB

I recently wrote a Restful web service using JSON and went the published properties approach.  I already had a nice hierarchical object design which maps properties using RTTI.  It would be nice to have RTTI support in the language so I could consume the JSON produced in my web service.

"Tim Young [Elevate Software]" wrote:

Matthew,

<< Is this capability available to me in EWB? If not, could it be? >>

It's on the list of things to be dealt with.  I'm still not sure if I'm
going to do an approach like what Christian came up with (very nice design)
or something with "published" properties, but in the end it will give you
"native" JSON in the sense that normal TObjects will be able to persist to
and from strings without any "noticeable" parsing on your part.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image