Published

JSON Framework for iPhone

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:

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.

I haven’t started using the framework, but I got the sense that that section is mutually exclusive with the previous steps. I think frameworks added under resources are a part of Mac OS X applications, not iPhone ones.