- UID
- 1066743
|
OC 字典 转 JSON
NSDictionary * dictionary = [NSDictionary dictionary];
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:dictionary options:NSJSONWritingPrettyPrinted error:nil];
NSString * jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; |
|