iOS 网络请求字符串数据转json

- (NSDictionary *)parseJSONStringToNSDictionary:(NSString *)JSONString {

 NSData *JSONData = [JSONString dataUsingEncoding:NSUTF8StringEncoding];

NSDictionary *responseJSON = [NSJSONSerialization JSONObjectWithData:JSONData options:NSJSONReadingMutableLeaves error:nil];

return responseJSON;

}

你可能感兴趣的:(iOS 网络请求字符串数据转json)