首页 > 代码库 > NSString json 车NSDictionary

NSString json 车NSDictionary

 NSData *jsonContent = [[userInfo objectForKey:@"acme"] dataUsingEncoding:NSUTF8StringEncoding];

            NSDictionary * jsonDic = nil;

            NSError *error = nil;

            jsonDic =  [NSJSONSerializationJSONObjectWithData:jsonContent options:NSJSONReadingMutableLeaveserror:&error];