Parsing JSON without dictionary iteration

38 views
Skip to first unread message

Peter Kasson

unread,
Apr 3, 2013, 7:58:21 AM4/3/13
to ci...@googlegroups.com
Greetings all,

I have been able to parse JSON back into a simple custom object, but I have a rather large nested object hierarchy, and parsing each object from a Dictionary seems completely non sensical. While Java contains many mappers and libraries to auto map JSON back to a large object graph (Jackson), doesnt Obj-C ? Perhaps I am not using SBJson right or the content of the json is invalid, but whenever I try to parse it into an object, it always turns up as a Dictionary.

RestKit does generate the graph for posting to the server but I have not been able to reconstruct back to the core object graph.

Thanks,

Peter

Christopher Judd

unread,
Apr 3, 2013, 8:49:40 AM4/3/13
to ci...@googlegroups.com
Peter,

I have an example of using RestKit to parse JSON at https://github.com/cjudd/solrmap.

--
You received this message because you are subscribed to the Google Groups "Columbus iPhone Developers User Group (CIDUG)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cidug+un...@googlegroups.com.
To post to this group, send email to ci...@googlegroups.com.
Visit this group at http://groups.google.com/group/cidug?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gmail

unread,
Apr 3, 2013, 10:14:41 AM4/3/13
to ci...@googlegroups.com, ci...@googlegroups.com
Chris - thanks, I will try it.  I need to re- read the docs, the first time I looked at rest kit I read that it could parse an object from a GET into core data objects only. 

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages