Navigation Menu

Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longs not correctly decoded on iPhone #64

Closed
thillerson opened this issue May 3, 2011 · 1 comment
Closed

Longs not correctly decoded on iPhone #64

thillerson opened this issue May 3, 2011 · 1 comment
Labels
Milestone

Comments

@thillerson
Copy link

Consider:

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
Copy link
Contributor

sps commented May 4, 2011

Hi,

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:
#65

@stig stig closed this as completed in 60703d8 May 4, 2011
bewebste pushed a commit to bewebste/json-framework that referenced this issue Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants