Hi All,
I am working on a project where I have a JSON data.
I need to iterate through the JSON data.
I have already done that. But, I am facing the issue while trying to iterate through the array inside each json object.
Below is the sample JSON.
[{
“country”: “India”,
“tab”: “India”,
“locations”: [{ “location”: “Bangalore”},
{ “location”: “Chennai”},
{ “location”: “Trichy”},
{ “location”: “Salem”},
{ “location”: “Kolkata”},
{ “location”: “Noida”},
{ “location”: “Mumbai”}
]
},
{
"country": "Poland",
"tab": "Poland",
"locations": [
{ "location": "krakow"},
{ "location": "katowice"}
]
},
In this above data I need to loop throgh each country then loop through each location of that country. The first loop is working fine but I am not able to loop through locations.
Can anyone please help me what I am doing wrong?
test.json (1.5 KB)
Thanks,
Arup