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

Handle trailing whitespace in a nested array #2

Closed brettrp closed 1 year ago

brettrp commented 1 year ago

Issue #1


What is the current behavior?

Doesn't handle whitespace before a trailing ] in a nested array, meaning JSON which could otherwise be fixed generates an error.

What is the new behavior?

Does this introduce a breaking change?