This is wat i tried and it got an error Property 'jsonData' not found on object of type 'MapViewController *'.
NSError *writeError = nil;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:path options:NSJSONWritingPrettyPrinted error:&writeError];
NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSLog(@"JSON Output: %@", jsonString);
if (self.jsonData) {
// symbolize the returned route graphic
self.jsonData.routeGraphic.symbol = [self routeSymbol]; //2
// add the route graphic to the graphic's layer
[self._graphicsLayer addGraphic:self.jsonData.routeGraphic];//3
// tell the graphics layer to redraw
[self._graphicsLayer dataChanged];
}