Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Longs not correctly decoded on iPhone #64

thillerson opened this Issue May 3, 2011 · 1 comment


None yet
3 participants


NSString *testJSON = @"{ \"id\" : 20023767592 }";
SBJsonParser *parser = [[SBJsonParser alloc] init];
NSError *err = nil;
NSDictionary *parsedDictionary = (NSDictionary *)[parser objectWithString:testJSON error:err];

The dictionary parsedDictionary will have a value of 2147483647 for the id.


sps commented May 4, 2011


I ran into this same issue today. You had posted this issue about 30 mins before I came here todo the same.

I have submitted a fix for this:

@stig stig closed this in 60703d8 May 4, 2011

@bewebste bewebste pushed a commit to bewebste/json-framework that referenced this issue Nov 22, 2013

@sps sps fix for longs not correctly decoded
see: stig#64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment