mangiucugna / json_repair

A python module to repair invalid JSON, commonly used to parse the output of LLMs
https://pypi.org/project/json-repair/
MIT License
826 stars 48 forks source link

Fix the case where a float without a preceding zero is converted incorrectly #30

Closed paulb-instacart closed 5 months ago

paulb-instacart commented 5 months ago

Issue #29


What is the current behavior?

Values like .25 are converted to 25.

What is the new behavior?

Values like .25 are converted to 0.25

Does this introduce a breaking change?