NSError *error; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:data options:NSJSONWritingPrettyPrinted error:&error];//此处data参数是我上面提到的key为"data"的数组 NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
字典转son
最新推荐文章于 2024-06-18 15:08:28 发布