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
Positive exponents are truncated when repairing incomplete JSONÂ #230
Repairing a response with a missing closing brace changes a valid number with a positive exponent. 1e+10 becomes 1. In an array, the exponent becomes a separate string element.
The results should be {'value': 10000000000.0} and [10000000000.0, 2]. Repairing the missing delimiter should preserve the number. Negative exponents such as 1e-10 already survive this repair.
I plan to add a focused fix and regression tests for object, array, and file input.
A tested fix is available on fix/positive-exponent-repair. This repository currently restricts PR creation to collaborators, so I could not open the corresponding upstream PR.
Activity