Releases: mangiucugna/json_repair
Releases · mangiucugna/json_repair
Release 0.23.0
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
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
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
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
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
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
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
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
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
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