Fehler bei AFNetworking für JSON-Analyse
Ich habe den folgenden Code für JSON-Analyse:
<code>NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.dropbox.com/s/qz16qyi3julygl9/facebook.json"]]; AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) { NSLog(@"Request Success %@",[JSON class]); } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) { NSLog(@"Request Failure Because %@",[error userInfo]); }]; [operation start]; </code>
Ich habe jedoch einen Anforderungsfehler mit der folgenden Fehlermeldung:
NSErrorFailingURLKey = "https://www.dropbox.com/s/qz16qyi3julygl9/facebook.json"; NSLocalizedDescription =" Erwarteter Inhaltstyp {(\ n \ "text / json \", \ n \ "application / json \", \ n \ "text / javascript \" \ n)}, erhaltener Text / html ";
kann mir jemand helfen?