Skip to content

Releases: mangiucugna/json_repair

Release 0.23.0

02 Jun 09:47
Compare
Choose a tag to compare

Added

  • Support multiple objects in one string such as here you go {"key":"value"} and also [1,2,3] will return an array of all the valid objects found [{"key":"value"},[1,2,3]]

Sponsors

This release is sponsored by @AvantiB. Thank you very much for your donation!

This library is free for everyone and it's maintained and developed as a side project so, if you find this library useful for your work, consider offering me a beer via this link: https://github.com/sponsors/mangiucugna

Release 0.22.0

01 Jun 09:07
Compare
Choose a tag to compare

Added

  • Fix #50, if a primitive type (string, bool, number) is outside of an object or array and the json is invalid, ignore those because it's impossible to repair safely. Thanks to @pseudotensor for reporting!

Release 0.21.0

30 May 06:55
Compare
Choose a tag to compare

Added

  • Partially address #49, stray quotes followed by a comma are supported if it's at the end of an object

Release 0.20.1

26 May 14:49
Compare
Choose a tag to compare

Fixed

  • Fix #47, a stupid regression due to missing tests in the last refactor was messing up a complex json. In particular how the word "false"was managed in array context

Release 0.20.0

25 May 08:28
Compare
Choose a tag to compare

Added

  • Fix #46, add the support for a new edge case: in case we have non escaped quotes in an object value and a comma is present, don't automatically truncate but try more heuristics first. Thanks to @bwest2397 for reporting

Release 0.19.2

21 May 04:32
Compare
Choose a tag to compare

Fixed

  • There was an edge case in which a stray comment inside an object that looked like a boolean would be repaired as a key
  • Various improvements to performance and code readability
  • Reorganized tests to improve maintenance load

Release 0.19.1

13 May 19:16
Compare
Choose a tag to compare

Fixed

  • Fix #44, a better way to deal with escaping sequences in python and that is hopefully the last time I fix this. Thanks to @mlxyz for reporting the issue

Release 0.19.0

12 May 14:59
Compare
Choose a tag to compare

Added

  • PR #43, sometimes LLMs will be "lazy" and add an ellipsis in arrays to mean "etc.." like [1, 2, ..., 10] or [1, 2, 3, ...]. Previously the ellipsis was converted to string as it was not a targeted use case, now it is ignored. Thanks to @mlxyz for pushing this change.

Sponsors

This release is sponsored by @haydenth. Thank you very much for your donation!

This library is free for everyone and it's maintained and developed as a side project so, if you find this library useful for your work, consider offering me a beer via this link: https://github.com/sponsors/mangiucugna

Release 0.18.0

09 May 06:45
Compare
Choose a tag to compare

Added

  • Fix #42, add support for currency-like numbers. Thanks to @GeraldWu23 for reporting

Fixed

  • PR #41, remove garbage output in import (sorry folks!). Thanks to @MatthieuSarter for pushing the fix swiftly

Release 0.17.3

07 May 18:36
Compare
Choose a tag to compare

Fixed

  • Fix #34, sometimes llms spit weird thoughts and comments in the middle of objects, improve how we handle that. Thanks to @ArslanKAS for reporting