Open gianlucapisati opened 13 years ago
It is NSData and you should parse it with a JSON parser. Then you will be able to read what it says. In Lion you can use for example:
NSError *error;
NSJSONSerialization *jsonData = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
if (!error)
{
NSLog(@"%@", jsonData);
}
else
{
NSLog(@"Error: %@", error);
}
NSJSONSerialization will ne either a NSDictionary or a NSArray or something like that and it is only available on Lion, for older OS X or iPhone there are open source project wich you can use to parse JSON.
i'm a noob.. and i'm trying to use your code...
i think i've setted up everything, but when I execute my application this is what the function loginCallback prints:
Got Data (562B8ACF-FE4F-4405-89F7-65848B8D0C6F): <7b227365 7373696f 6e223a7b 226e616d 65223a22 6769616e 6c756361 70697361 7469222c 226b6579 223a2233 64623535 65326666 31646638 65633734 32626666 62313964 31333435 38613822 2c227375 62736372 69626572 223a2230 227d7d0a>
what's the meaning of this? what should I do?
thank you very very much!!!