Skip to content

Releases: mangiucugna/json_repair

Release 0.15.3

25 Apr 09:32
Compare
Choose a tag to compare

Fixed

  • Fixed #29, numbers like .25 where not considered numbers. Thanks to @paulb-instacart for reporting and pushing the PR!

Release 0.15.2

23 Apr 19:24
Compare
Choose a tag to compare

Fixed

  • Fixed #27, handle fractions such as 1/3 as string "1/3". Thanks to @paulb-instacart for reporting the issue and providing a PR to fix!

Release 0.15.1

23 Apr 15:57
Compare
Choose a tag to compare

Fixed

  • Ensure that all functions passthrough optional parameters to repair_json()

Release 0.15.0

21 Apr 15:11
Compare
Choose a tag to compare

Added

  • Adding a logging capability to understand what has been repaired. This was a feature request that was bubbling up in the issues, probably still incomplete but a good start if anyone is interested in understanding more about the errors found.
    You can enable logging by passing logging=True to repair_json() and it will return a tuple instead of just the corrected json

Release 0.14.0

19 Apr 12:41
Compare
Choose a tag to compare

Added

  • Fixed #26 by adding a more general way to handle special cases with html tags and markdown in which the LLM uses the wrong quotation mark. Thanks to @nikolaysm not only for reporting but also for pointing me in the right direction to solve this problem more elegantly

Release 0.13.1

18 Apr 15:48
Compare
Choose a tag to compare

Fixed

  • Fixed #24, fixed how the library handles the change of context when objects and arrays are mixed. Before this case would cause a crash. Thanks to @ftudisco for reporting the issue!

Release 0.13.0

11 Apr 16:40
Compare
Choose a tag to compare

Added

  • New function load(fd) that is a drop in replacement for json.load()
  • New function from_file(string_file_path) that makes it easier to write scripts to batch process json files

Thank to @ajmeese7 for the feature request in #21 !

Release 0.12.3

10 Apr 19:53
Compare
Choose a tag to compare

Fixed

  • Fix #23, if a dangling quotation mark followed a number or a boolean it would break the json string. Thanks @AloXado320 for reporting!

Release 0.12.2

09 Apr 06:02
Compare
Choose a tag to compare

Fixed

  • Generalize the double quotation fix

0.12.1

08 Apr 18:31
Compare
Choose a tag to compare

Fixed

  • Fix a corner case in case the double quotation marks aren't repeated