回答我自己的问题可以指导其他人是否遇到相同的问题,实际上,我在这里所做的工作是获取所需的标识数组:DEMO如下:
vehicleGroups =[NSJSonSerialization JSONObjectWithdata:data options:kNilOptions error:&error];NSLog(@"Response data: %@", responseString);NSLog(@"List ARRAY: %@", vehicleGroups);NSDictionary *dict1 = [vehicleGroups objectAtIndex: 0];NSString *identity1 = [dict objectForKey: @"identity"];NSLog(@"dictNEW: %@", dict1);groupOfVehicles = [[NSMutableArray alloc] init];for (NSUInteger index = 0; index < [vehicleGroups count]; index++) { itemDict = [vehicleGroups objectAtIndex: index]; [groupOfVehicles addObject:[itemDict objectForKey:@"identity"]];}NSLog(@"Group Name NEW: %@", identity1);NSLog(@"Groups NEW: %@", groupOfVehicles);使用该代码后,我已正确获取所需数据的数组



