私はThis URLからJson応答を解析しようとしています。私はSBJsonParser、MTJSONと別のパーサを使用していますが、私は3つのケースすべてでNULLを取得しています。Googleからのjson応答を解析できません
apiUrlStr = @"http://maps.google.com/maps?output=dragdir&saddr=Delhi&daddr=Mumbai+to:hyderabad";
NSURL* apiUrl = [NSURL URLWithString:apiUrlStr];
NSString *apiResponse = [NSString stringWithContentsOfURL:apiUrl encoding:NSUTF8StringEncoding error:nil];
SBJsonParser *json = [[[SBJsonParser alloc] init] autorelease];
NSDictionary *dictionary = [json objectWithString:apiResponse];
NSLog(@"dictionary=%@", [json objectWithString:apiResponse]);
2011-12-09 16:59:01.226 MapWithRoutes [2523:207]辞書=(ヌル)
PlzはURLあなたをチェックすると私に何か
あなたの投稿は要部のアルロットが欠落しています。http://mattgemmell.com/2008/ 12/08/what-have-you-tried/ – rckoenes
@rckoenes、私は何かが欠けているとは思わない。とにかくJSONのデコードに失敗します。 –
私は何を言っています。私は今何をすると思いますか? –