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

JsonParser fails to parse decimal values correctly #7

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment
Closed

JsonParser fails to parse decimal values correctly #7

GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

-122.08 is parsed as -122.0

Original issue reported on code.google.com by inder123 on 8 May 2008 at 5:34

@GoogleCodeExporter
Copy link
Author

Fixed in r37 by updating the token definition for a digit to support multiple 
digits
after the decimal point. 
This allows numbers with more than one leading zeros as valid numbers even 
though
Json grammar technically disallows it. But I figured that allowing this is a 
little
more permissive without breaking any code, so can't hurt. 

See:
http://groups.google.com/group/google-gson-codereviews/browse_thread/thread/7a22
fa0d485a4a76

Original comment by inder123 on 8 May 2008 at 5:39

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant