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

NSJSONSerialization flunks floats #6

Open
cinayakoshka opened this issue Sep 21, 2011 · 0 comments
Open

NSJSONSerialization flunks floats #6

cinayakoshka opened this issue Sep 21, 2011 · 0 comments

Comments

@cinayakoshka
Copy link
Member

  • (void) dataCheck:(NSMutableURLRequest *)request forValue:(id)val
    in the tests...
    This test has uncovered a problem in the JSON library, which is that it decodes floats as decimals, rounding as necessary. We have to override how JSONSerialization is doing this, or possibly report the issue to Apple. Meanwhile, this test might as well just check to see if the decimal is reasonably close to its original value. For now, it's doing nothing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant