I want to use JSON library in my iPhone project.
I’ve found that the json-framework library is the most popular at the moment. It can be found here: http://code.google.com/p/json-framework/.
any other suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Setting up JSON Framework
The library used in this application is one written by Stig Brautaset and hosted at code.google.com. I’ve used this library in two applications that are in the App Store, Today’s Horoscope, free and paid. This is an excellent library, you can’t go wrong.
There are a few variations on the install process, the easiest and least prone to errors is to copy the source files directly into your project. In the project that is attached to this post, this is done for you, however, it’s shown here if you need to add the framework to an existing or future project.
Xcode Project Download – Part 1
To keep this post to a manageable length, I’ll show only the code that is most pertinent to JSON, Flickr and the overall application flow, the code on the periphery you’ll be familiar with and you can browse through at any time in the project source code.
Source: http://iosdevelopertips.com/networking/iphone-json-flickr-tutorial-part-1.html
Updated Answer
Use NSJSONSerialization Class https://developer.apple.com/documentation/foundation/jsonserialization