I need to parse json form this link https://raw.githubusercontent.com/David-Haim/CountriesToCitiesJSON/master/countriesToCities.json
This file stores the country names as a key, and as city values located in these countries
How to pull the city by the key of the country I know, here is an example with China
NSDictionary *dict = [self JSONFromFile];
NSArray *city = [dict objectForKey:@"China"];
NSLog(@"Colour name: %@", city);
But I first need to get all the names of countries, which would then give the user the choice of the country for further action.
[dict allKeys]