You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Numbers with extra prefix 0 should not be accepted as valid input #591
Activity
bwoodsend commentedon May 17, 2023
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?
MichaelSuen-thePointer commentedon May 17, 2023
I was porting code from python standard
jsontoujsonfor better performance, and the code relies onloads("0012")to fail.bwoodsend commentedon May 17, 2023
You're probably better off going with orjson then. They take the opposite stance to us on accepting non standard inputs.