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