I have a WebService, which give me the fallowing Json-String back:
"{\"password\" : \"1234\", \"user\" : \"andreas\"}" I call the webservice and try to parse the returned data like:
[NSURLConnection sendAsynchronousRequest: request queue: queue completionHandler: ^(NSURLResponse *response, NSData *data, NSError *error) { if (error || !data) { // Handle the error } else { // Handle the success NSError *errorJson = nil; NSDictionary *responseDict = [NSJSONSerialization JSONObjectWithData: data options: NSJSONReadingMutableContainers error: &errorJson]; NSString *usr = [responseDict objectForKey:@"user"]; } } ]; But the resulting NSDictionary looks like:
What has the effect, that I cannot get the values - for example user. Can someone help me, what I am doing wrong? - Thank you.