Parse JSON array

后端 未结 3 1863
一向
一向 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 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.

提交回复
热议问题