+ (NSString*)dictionaryToJson:(NSDictionary *)dic
{
NSError *parseError = nil;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:&parseError];
return [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
}
************************************
self.dataDic = [NSDictionarydictionaryWithDictionary:responseData[@"data"]];
NSString *jsonString = responseData[@"data"][@"visitRemarks"];
NSError *err;
NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
noteArray = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&err];
时间: 2024-10-10 04:35:30