Hi All,
I want to parse a JSON files which contains data in the format as shown below,
[
{
"Country": "United States"
"States": [
{
"Cities": [
"Abbeville",
"Abernant",
"Adamsville",
"Addison"
],
"State": "AL"
},
{
"Cities": [
"Adak",
"Akiak",
"Akutan",
"Ambler"
],
"State": "AK"
},
]
},
{
"Country": "Canada"
"States": [
{
"Cities": [
"Barrie",
"Belleville",
"Brampton",
"Brant"
],
"State": "ON"
},
{
"Cities": [
"Acton Vale",
"Alma",
"Amos",
"Amqui",
"Asbestos"
],
"State": "QC"
},
]
}
]
From above JSON format, I want to get list of all Country names, State names,City Names.
First,I want all the country names list. Then when I pass country name as "Canada" then all its states should be fetched and so on to get the city names of respective country ,state and city.