Possible Duplicate:
Using JSON in iOS
How does one parse JSON response in iOS? I have found this tutorial, and followed it but don’t understand the exact way to do this. So, can anyone please give me a perfect tutorial about the using JSON library.
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.
Parsing JSON in iOS is very easy with the SBJson library, and a frequent question on SO.
Quickly though, there are only two methods you should need in the SBJson library,
-JSONValueand-JSONRepresentation:-JSONValuecane be called on anyNSStringof JSON, once the library has been added to your project, and returns anNSArrayorNSDictionarybased on that JSON.-JSONRepresentationcalled on anNSArrayorNSDictionaryreturns the JSON-string representation of that object…really straightforward.For more information, please see my examples in this duplicate question’s answer.