0

I made a very simple wordpress plugin that prints some posts in JSON format. I was wondering what is the best and simplest way is to process that information in Xcode.

I've seen many examples and many frameworks but I would like to hear your opinion and maybe some example code?

Thank you.

4
  • 1
    possible duplicate of JSON parse in iphone Application Commented Feb 20, 2012 at 7:25
  • Possible what? I am just asking a question? Commented Feb 20, 2012 at 7:30
  • 1
    If your question is “how do I parse JSON in iOS?” it is an exact duplicate of the question I linked. The word “possible” was stuck in there automatically by stackoverflow. If your question is “what's your opinion of the best JSON parser?”, then “this question will likely solicit opinion” and is therefore “not constructive”. Example code is trivial to find using google. Commented Feb 20, 2012 at 7:33
  • Thank you for your answer on my question. Commented Feb 20, 2012 at 11:30

2 Answers 2

1

If you are targeting iOS 5.0 and later, the simplest way is using the NSJSONSerialization class that Apple provides.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I am going to test that class.
0

As rob said if you're targeting iOS 5 use Apples NSJSONSerialization class. For earlier iOS versions there area also some options:

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.