Problem parsing JSON

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

figured out…
Thanks!

Hi,

you need another loop nested:

br,
Topi

Hi
Follow below tutorial

1 Like

How did you resolve it?

1 Like

Hi @Zak

Welcome to the community!

Maybe you can create new topic if you have your own issue. So that we can easily address it.

Many Thanks :smiley:

cheers :smiley:

Happy learning :smiley:

3 Likes