How to parse JSON in Objective-C

后端 未结 2 1246
傲寒
傲寒 2021-01-16 17:19

i have this json string

{
    \"@uri\": \"http://localhost:8080/TunisairRESTful/resources/cities/\",
    \"city\": [
        {
            \"@uri\": \"http:/         


        
2条回答
  •  無奈伤痛
    2021-01-16 17:34

    You're doing an initWithContentsOfFile but passing in a string. Have you tried simply [responseString JSONValue]? Your code suggests that responseString has the PATH to the file you're trying to open, not your full response string itself.

提交回复
热议问题