JSON Parsing in iOS 7

前端 未结 14 2269
长情又很酷
长情又很酷 2020-12-04 11:25

I am creating an app for as existing website. They currently has the JSON in the following format :

[

   {
       \"id\": \"value\",
       \"array\": \"[{\         


        
14条回答
  •  星月不相逢
    2020-12-04 12:17

    • You may always unescape the jsonData before deliver it to NSJSONSerialization. Or you may use the string got to construct another json object to get the array.

    • NSJSONSerialization is doing right, the value in your example should be a string.

提交回复
热议问题