Search code examples
iphonejsonparsingnsdictionarytouchjson

Parse JSON array


I fetch a JSON array from a web service with touchJSON. Which looks like this:

[{"icecream": {"title": "Banana"}}, {"icecream": {"title": "Strawberry"}}]

I'm not able to parse this into a NSDictionary, because touchJSON doesn't support JSON arrays.

How do I get my JSON array into a NSDicitionary?

Regards


Solution

  • Have you consider trying another framework? This one seems to support JSON arrays.