iOS comes with JSON parsing class parsing JSON

Source: Internet
Author: User

1-(ibaction) test: (ID) Sender {2NSString *result =@"{\"Code\": \ "s00000\", \ "message\": \ "Success\", \ "data\": {\ "file_name\": \ " B1feba4439d0bed9f867123637121b24-dc7764fb24f7294c6a3dcb6971eddb25.png\ ", \" paths\ ": [\" x1\ ", \" x2\ ", \" x3\ ", \" X5\ " , \ "X6\", \ "x7\", \ "x8\", \ "Xm\"}}";3Nserror *error;4nsdata* response =[result datausingencoding:nsutf8stringencoding];5 6Nsdictionary *jsoninfo = [Nsjsonserialization jsonobjectwithdata:response options:nsjsonreadingmutablecontainers error:&ERROR];7NSString *code = [Jsoninfo objectforkey:@"Code"];8     9NSLog ([NSString stringWithFormat:@"%@", code]);Ten      OneNsdictionary *data = [Jsoninfo objectforkey:@"Data"]; ANSLog ([NSString stringWithFormat:@"%@", [Data objectforkey:@"file_name"]]); -}
What's the nsjsonreadingoption of the 6th line? I can't figure it out with nsjsonreadingmutableleaves.

iOS comes with JSON parsing class parsing JSON

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.