Hello experts!
I'm trying to make a http request. The code looks like this:
NSString *urlString = [NSString stringWithString:@"http://www.foo.se/bartojson.php?venue=47497"];
NSLog(@"retain %d urlString %@", [urlString retainCount], urlString );
NSURL *url = [NSURL URLWithString:urlString];
[urlString release];
NSString *jsonString = [NSString stringWithContentsOfURL:url];
NSDictionary *httpResult = [jsonString JSONValue];
When calling the page in a browser the result looks like this:
{"name": "test" ,"description": "This is a test." ,"reviews": [{"grade": "5", "description": "Nice"},{"grade": "3", "description": "Very nice!"}]}
But when calling it from the code i get this:
Error Domain=org.brautaset.JSON.ErrorDomain Code=3 UserInfo=0x582640 "Object value expected for key: reviews"
There seems to be some problem with the reviews pointing to a new dictionary. Could you please help me understand this error message.