On Dec 16, 2010, at 1:39 PM, Jason Hect wrote:
> All this talk about Javascript libraries got me playing around and using
> A4D's Json library. I'm working through some examples online, and trying to
> make them work with 4D. In one example they get a search result back from
> twitter, which contains numerous responses. I'm trying to generate a
> similar response using A4D. The twitter response looks something like this:
> (tweaked for brevity and clarity)
>
> {results":[{"user":"Jason","text":"Active 4D is
> Cool!"},{"user":"John","text":"Json is great!"}]}
>
> I can create a single Json response, but I'm having a hard time wrapping my
> head around creating this nested type response. Seems like I need something
> like json->addarray but where the array json objects?
Did you look at the json documentation in the standard libraries section?
(I'm allowed to say that since I messed up yesterday by not reading
documentation:-)
There is addArray and other things. The other thing is you can use a collection
to add your nested object then just add the collection.
Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/