1,转NSData
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:json options:NSJSONWritingPrettyPrinted error:nil];
NSString *jsonStr = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSLog(@"这是全部数据%@",jsonStr);
2,为NSDictionary加分类方法
- (NSString*)my_description {
NSString *desc = [self description];
desc = [NSString stringWithCString:[desc cStringUsingEncoding:NSUTF8StringEncoding] encoding:NSNonLossyASCIIStringEncoding];
return desc;
}
改系统方法,有一定风险
3,lldb(待定)