NSString *string1=@"{"code":"1","desc":[{"col_0007":"李玉华", "col_0023":"已回单","col_0025":"800.00", "col_0027":"T14101400008","col_0031":"2014-10-14 22:21:05", "col_0042":"null","col_0057":"null"},{"col_0007":"李丽", "col_0023":"已转单","col_0025":"0.00", "col_0027":"T14101400009","col_0031":"2014-10-14 22:33:49", "col_0042":"null","col_0057":"null"}]}";
dicRoot = [[[SBJsonParser alloc]init] objectWithString:string1];
NSString *desc2 =[dicRoot objectForKey:@"desc"];
NSDictionary *dicRoot2 = [[[SBJsonParser alloc]init] objectWithString:desc2];
NSLog(@"sucahkshdkahskdjh: %@", dicRoot2);
报错 新手求教Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM dataUsingEncoding:]: unrecognized selector sent to instance 0x7a731320'
[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonErr]这个解析会比较好
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。