Q: NSDictionary with UInt64 values Why my sessionRef is not taken as String in NSDictionary?
The debugger shows the right thing, but seems the NSDictionary automatically convert it to int. 
Anybody knows the trick?


UPDATE:

Though sessionRef looks like an integer in the debug print, it really works. Since the code below works when reversing the JSON. 
NSDictionary *d = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
self.sessionRef = [[d valueForKey:@"sessionref"] longLongValue];


A: There is no trick. 
The double quotes around string values of an NSDictionary description are displayed only if the string contains space (and a few other special) characters.

A: The Objective-C description method, which NSLog() uses, suffers from being to fancy, it does not quote things that it feels don't need to be quoted WRT NStrings. Note that NSDictionary can not contain an integer, only objects.
Note that the variable errormessage is quoted supposidly because it has an embedded space character. Only Apple knows why they do this.
