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

JSONObject do support octal #6

Open
sberyozkin opened this issue May 14, 2015 · 0 comments
Open

JSONObject do support octal #6

sberyozkin opened this issue May 14, 2015 · 0 comments

Comments

@sberyozkin
Copy link
Contributor

JSONObject do support octal and hexadecimal numbers (0777, 0xABCD), but JSON.org states that JSON does not support them, and ES5 goes as far as forbidding them http://es5.github.com/#B.1
Since extra leading zeros might creep in the input, I think it's better to ignore them than return a completely different number from the one intended (how often does one use octal nowadays? except in chmod parameters, maybe...)

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