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

added edge case "}." json_repair.py #14

Closed Praniyendeev closed 8 months ago

Praniyendeev commented 8 months ago

Issue # does not handle edge case "}." with period after an object in an array.

What is the current behavior?

Throws an exception

What is the new behavior?

-ignores period at the beginning of an object and at the end of the array.

Does this introduce a breaking change?

Other information

mangiucugna commented 8 months ago

Hello, I am not sure exactly what you are trying to achieve here and I see a few problems with the proposed change: