I have all the json data in NSDATA and now I am not understanding how to parse Json objects and show their value in UILabel My code is
-(void)viewDidLoad{
[super viewDidLoad];
self.View3Alpha.alpha = 0.5;
///////////////Getting json from Url ///////////////
NSURL * url = [NSURL URLWithString:@"http://api.openweathermap.org/data/2.5/weather?q=Islamabad"];
self.jsonData = [NSData dataWithContentsOfURL:url];
if (self.jsonData != nil) {
NSError * error = nil;
id result = [NSJSONSerialization JSONObjectWithData:self.jsonData options:NSJSONReadingMutableContainers error:&error];
if (error == nil) {
NSLog(@"%@",result);
self.jsonArray = [NSJSONSerialization JSONObjectWithData:self.jsonData options:kNilOptions error:&error];
// NSLog(@"%@",jsonArray);
// int secondsLeft = [self.jsonArray objectForKey:@"SecondsToStop"];
}
}
////////////////////////////// Retriving into readable //////////////////////
}