Releases: mangiucugna/json_repair
Release 0.26.0
Added
- Adding ensure_ascii to the options of
repair_json
. By defaultjson.dumps()
setsensure_ascii=True
this is particularly a problem for chinese text that has no ascii representation. Setting ensure_ascii=False will prevent chinese text from being converted into weird escaped characters in ascii and remain unicode. Thanks to @RatexMak for pointing this out.
Fixed
- As documented, the
load
function should behave likeloads()
. That wasn't the case so far.
Sponsors
This release is sponsored by @t0mmili and @nhend. 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.25.3
Fixed
- Fix #57, sometimes a string can look like
""string"
a bug was preventing the library from fixing it like"string"
. Thanks to @RaahimSiddiqi for reporting.
Sponsors
This release is sponsored by @MorDvash. 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.25.2
Fixed
- Fix #55, a fix a regression bug. Array of strings not separated by commas were not repaired. Thanks to @SumitRathor002 for reporting the issue!
Release 0.25.1
Fixed
- Fix #54, fix the
maximum recursion depth reached
error in case the malformed json is a long long string. Thanks to @eleanorRumsey for reporting!
Sponsors
This release is sponsored by @ahhardin. 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.25.0
Added
- As additionally reported in #53, there can be cases in which not only quotes are missing but also commas are missing. That is kind of a mess, but with some clever tricks we were able to untangle the mess
Release 0.24.0
Release 0.23.1
Fixed
- Remove garbage output
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