nsjsonserialization in ios5?

后端 未结 6 1249
一个人的身影
一个人的身影 2021-02-02 15:09

I have been reading that there is a now library in ios 5 that allows you to serialize & deserialize JSON data. I can\'t for the life of me find examples or the framework in

6条回答
  •  遇见更好的自我
    2021-02-02 15:51

    Using following simple code you can convert web data into JSON .

    In this code "webData" is the data you get when you hit web service.

    NSError *jsonParsingError = nil;
    NSArray *result=[NSJSONSerialization JSONObjectWithData:webData options:0 error:&jsonParsingError]; 
    

提交回复
热议问题