' 替换成 " 加 \
NSString*strUrl = [url stringByReplacingOccurrencesOfString:@"'"withString:@"\""];
JSON 转 dictionary
NSData*jsonData = [strUrldataUsingEncoding:NSUTF8StringEncoding];
NSError*err;
NSDictionary*dic = [NSJSONSerializationJSONObjectWithData:jsonData
options:NSJSONReadingMutableContainers
error:&err];
字符串替换.png
网友评论