I'm trying to read data from geojson file using this code:
NSString *jsonPath = [[NSBundle mainBundle] pathForResource:@"roads_json" ofType:@"geojson"];
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:[[NSData alloc]
initWithContentsOfFile:jsonPath]
options:0
error:nil];
NSLog(@"points:%@",json);
and the output:
points:(null)
any idea plz...