JSONDecoder *jArray = [[JSONDecoder alloc]init];
NSMutableArray *theObject = [[NSMutableArray alloc] init];
theObject = [jArray objectWithData:theResponseData];//objectWithString:theResponseString
NSMutableArray *csArray = [[NSMutableArray array] retain] ;
for(id key in theObject)
{
if([key valueForKey:@"firstName"] != Nil)
{
........
}
if([key valueForKey:@"lastName"] != Nil)
{
........
}
}
ios json对象转为对象数组
最新推荐文章于 2021-12-31 15:21:54 发布