Editor’s Note: Due to the popularity of this iPhone JSON series, a new three part tutorial series on working with JSON was published in August 2009. You can find the latest JSON iPhone tutorial series at the links below:
- iPhone JSON and Flickr Tutorial – Part 1
- iPhone JSON and Flickr Tutorial – Part 2
- iPhone JSON and Flickr Tutorial – Part 3
If you’ve found a need to work with JSON and the iPhone, Stig Brautaset has written a nice framework that is available on github.
This framework implements a strict JSON parser and generator in Objective-C. It’s easy to work with and can be used across any number of projects with ease.
To use this framework it was pretty straightforward to get things in place, copy the included "SDKs" folder onto your local system (into ~/Library/SDKs). From within a project, modify the target build options to point to the SDK and add a link option to include the necessary library into the build.
From this point forward, the SDK is now available for use within any iPhone project, simply update the build settings and you are good to go.
You can find Part 2 of working with JSON here.