JSON Frameworks

From: Aubrey G.
Sent on: Tuesday, August 4, 2009 11:01 PM
We briefly talked about using JSON for the web service interface
between an iPhone app and a web server.  Here are links to both of the
ObjC frameworks we mentioned.

Barry mentioned TouchJSON - http://code.googl...­
I mentioned json-framework - http://code.googl...­

I use json-framework in my CoreGraphics game, Pucker, to convey
scoring and neural network information between the app and a web
service.  The web service uses Ruby on Rails, so it was really easy to
configure access to the data in multiple formats, including HTML, XML,
and JSON.  On the iPhone side, json-framework is easily integrated
into the app, and there's a simple guide on the project web site.  The
documentation is a bit obscure, but it's open source, so you can dig
into the code if you can't find answers in the docs.

Both of the frameworks mentioned here follow the same basic premise.
They both provide parsing utilities to convert JSON content in a
NSString object into either a NSArray or a NSDictionary object
representation of the JSON content, and vice versa.  At the moment,
I'm trying to figure out how to encapsulate the NSDictionary data into
a custom object type, so I can wrap the JSON data in an associated
object instance and access it directly.  If I find anything promising,
I'll share what I find.

I could go into a lot more detail.  If anyone is interested, let me
know, and I will be happy to elaborate.

Aubrey Goodman

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy