We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> import json5 # v0.9.11 >>> json5.loads('Infinity') # Correct. inf >>> json5.loads('-Infinity') # Correct. -inf >>> json5.loads('+123.456') # Correct. 123.456 >>> json5.loads('+Infinity') # Non-spec behavior, incorrect; expected inf. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "~/.local/lib/python3.10/site-packages/json5/lib.py", line 81, in loads raise ValueError(err) ValueError: <string>:1 Unexpected "I" at column 2 <string>:1 Unexpected "I" at column 2
The text was updated successfully, but these errors were encountered:
Hi! Thanks for reporting this and I apologize for the delay in getting back to you. I will try get to this soon.
Sorry, something went wrong.
Fix GitHub issue #63 - Handle +Infinity properly.
+Infinity
ff2a072
The code handled `Infinity` and `-Infinity` but not `+Infinity`. This change fixes that so all three are handled.
Fixed in ff2a072.
Thanks again for filing the bug and sorry again for me not getting to it before now.
No branches or pull requests
The text was updated successfully, but these errors were encountered: