-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
-0 parsed as string!!! #318
Comments
What version of the library are you using? AFAIR it has been fixed already. |
this was fixed over a year ago unless there is a regression: |
@metwp the -0 should return as a Double, not an Integer since java Integer does not maintain -0, it would flip to +0. |
Thanks for your immediate answers. @erosb @johnjaylward |
If I parse the following JSON string, the value of key "a" will be interpreted as an integer. So far, so good.
But unfortunately the value of key "b" will be interpreted as a string and NOT as a number (integer).
{ "a": 0, "b": -0 }
Is there a possibility to avoid this behaviour, or do I'm something wrong?
The text was updated successfully, but these errors were encountered: