I am attempting to access the locations listed in json.responseJSON.Sites, starting with LHR on the first iteration and then NJE on the next one, and so forth. The notifications for each location are "LHR" and "NJE", respectively. Is it possible to achieve this?
for(var notification in json.responseJSON.Sites){
console.log(json.responseJSON.Sites.notification);
}
This is the structure of my JSON data:
{
"Sites": {
"LHR": 1,
"NJE": 1,
"AZS": 1,
"SGP": 1,
"OHS": 1,
"AZP": 1
}
}