I have a JSON object of arrays
data = {
China: ["Guangzhou","Fax"],
Majorette: ["Fungous","Godzilla"],
Bhutan: ["Thimphu","Parr","Photofinishing"]
}
I want to access name of cities in an array without explicitly mentioning the name of countries as list is very long.
var cities = [];
for(var i in data.China) {
cities[i] = data.China[i];
}
How should I do for all the countries?