//json
+ (NSArray *)setLists:(NSString *)json
{
NSData *data = [json dataUsingEncoding:NSUTF8StringEncoding];
NSArray* aJsons = [NSJSONSerialization JSONObjectWithData:data
options:kNilOptions
error:nil];
return aJsons;
}
//json
+ (NSArray *)setLists:(NSString *)json
{
NSData *data = [json dataUsingEncoding:NSUTF8StringEncoding];
NSArray* aJsons = [NSJSONSerialization JSONObjectWithData:data
options:kNilOptions
error:nil];
return aJsons;
}
转载于:https://www.cnblogs.com/qwer-BHS/p/5315973.html