/**
* json转字符串声明
*/
+ (NSString *)jsonToString:(NSDictionary *)dic;
/**
* json转字符串实现
*/
+ (NSString *)jsonToString:(NSDictionary *)dic
{
if(!dic){
return nil;
}
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:nil];
return [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
}