1.生成json字符串
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:detailDic options:0 error:nil]; NSString * myString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSDictionary * selectSimpleTest = [NSJSONSerialization JSONObjectWithData:[tizhiSimpleTest.detail dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];
官方提供的JSON解析
原文地址:http://blog.csdn.net/zhangxiweicaochen/article/details/41983503