First you need to convert your JSON data into an NSArray
:
NSError *jsonError;
NSArray *jsonArray = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&jsonError];
then you can access each value using its key like this:
NSDictionary *jsonItemDic = jsonArray[0];
NSString *dTempData = [jsonItemDic objectForkey@"DTempData"];
P.S.: The sample data you have sent is incomplete, it seems though that your JSON is an Array of dictionaries. My Answer relies on this theory.
Update:
From the screenshots I have seen, you data is stored inside a root dictionary. That means your object's root is a dictionary with a key called GetVerifiedDevices
and the value of an array of dictionaries. You can access the devices array like this:
NSArray *devices = [your_json_object objectForKey:@"GetVerifiedDevices"];
and then query your devices like this:
for(NSDictionary *deviceDic in devices){
NSString *dTempData = [deviceDic objectForkey@"DTempData"];
//And others like above
}
Cheers. M.