以下解析器返回 Null 值。谁能帮我吗..
-(IBAction)search:(id)sender
{
NSString *webserviceURL = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/textsearch/json?query=Delhi&sensor=true&key=AIzaSyCGeIN7gCxU8baq3e5eL0DU3_JHeWyKzic"];
NSURL *finalURl = [NSURL URLWithString:webserviceURL];
NSData *data = [NSData dataWithContentsOfURL:finalURl];
NSString *data1 = [NSString stringWithUTF8String:[data bytes]];
NSLog(@"Result is :%@", data1);
NSError * error;
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers|NSJSONReadingAllowFragments error:& error];
NSLog(@"Result is :%@", json);
}