Parse JSON array

后端 未结 3 1840
一向
一向 2021-01-16 17:01

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

[{\"icecream\": {\"title\": \"Banana\"}}, {\"icecream\": {\"title\": \"Strawbe         


        
相关标签:
3条回答
  • 2021-01-16 17:42

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

    0 讨论(0)
  • 2021-01-16 17:45

    Maybe you could use another of the many JSON implementations listed on the JSON homepage.

    0 讨论(0)
  • 2021-01-16 18:03

    You can chekc out the JSON webpage, where they provide links to parsing code in dozens of languages. However, at first glance it looks like you're trying to munge from one type of object (the JSON Array) into another that might not be able to capture all the relationships (the NSDictionary). Full disclaimer: I've never used an NSDictionary before.

    0 讨论(0)
提交回复
热议问题