1.将OC的字典转化成OC格式的字符串
NSDictionary * dic = @{@"name": @"Frank",@"age":@"18"};
2.转化字典
NSString * jsonStr = [dic JSONString];
NSLog(@"%@",jsonStr);
1.将OC的字典转化成OC格式的字符串
NSDictionary * dic = @{@"name": @"Frank",@"age":@"18"};
2.转化字典
NSString * jsonStr = [dic JSONString];
NSLog(@"%@",jsonStr);
转载于:https://my.oschina.net/qccc/blog/315774