NSString *resultString = [self responseString];//self为网络请求操作类(completedOperation) NSData *data = [[resultString stringByReplacingOccurrencesOfString:@"\r\n" withString:@"\\r\\n"] dataUsingEncoding:NSUTF8StringEncoding]; NSError *error = nil; result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:&error];
原文地址:http://blog.csdn.net/u013243469/article/details/45817261