mangiucugna / json_repair

A python module to repair invalid JSON, commonly used to parse the output of LLMs

Home Page:https://pypi.org/project/json-repair/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: json_repair does not work for following json

Laserlicht opened this issue · comments

Thanks for the library! :)

Version of the library

0.20.0

Describe the bug

After parsing the "graphics" object is not in the correct hierarchy.

And also the bonus with bool variables does not seems to parsed correctly.

How to reproduce

Use json_repair.loads() with following json:
https://raw.githubusercontent.com/vcmi-mods/tides-of-war/vcmi-1.5/Mods/alternative-creatures/content/config/creatures/rampart/dryad.json

Compare object for example with json5 library output.

Thanks for reporting, this was way trickier to figure out than I anticipated but it was a couple of small stupid edge case. I am pushing 0.20.1 out now

Thanks for the ultra fast response. Looks good now. :)