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
ujson.loads("0012")
exception raised, ValueError for example
ValueError
function returns 12
12
Please include code that reproduces the issue.
The best reproductions are self-contained scripts with minimal dependencies.
try: ujson.loads("0012") print("not ok") except ValueError: print("ok")
The text was updated successfully, but these errors were encountered:
The JSON spec explicitly allows parsers to accept input that isn't part of the spec but whose intention is clear and non ambiguous.
Beyond purism, why does this actually matter?
Sorry, something went wrong.
The JSON spec explicitly allows parsers to accept input that isn't part of the spec but whose intention is clear and non ambiguous. Beyond purism, why does this actually matter?
I was porting code from python standard json to ujson for better performance, and the code relies on loads("0012") to fail.
json
ujson
loads("0012")
You're probably better off going with orjson then. They take the opposite stance to us on accepting non standard inputs.
No branches or pull requests
What did you do?
What did you expect to happen?
exception raised,
ValueError
for exampleWhat actually happened?
function returns
12
What versions are you using?
Please include code that reproduces the issue.
The best reproductions are self-contained scripts with minimal dependencies.
The text was updated successfully, but these errors were encountered: