Skip to content

Releases: mangiucugna/json_repair

Release 0.26.0

02 Aug 08:47
Compare
Choose a tag to compare

Added

  • Adding ensure_ascii to the options of repair_json. By default json.dumps() sets ensure_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 like loads(). 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

10 Jul 13:41
Compare
Choose a tag to compare

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

27 Jun 16:25
Compare
Choose a tag to compare

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

20 Jun 20:12
Compare
Choose a tag to compare

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

19 Jun 03:57
Compare
Choose a tag to compare

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

18 Jun 19:25
Compare
Choose a tag to compare

Added

  • Fix #53, change how missing left delimeters are handled in object context to take into account the possibility that the right side might not be missing. Thanks to @ahhardin for reporting

Fixed

  • Array of numbers were poorly handled but somehow I never noticed that the tests were wrong

Release 0.23.1

02 Jun 13:55
Compare
Choose a tag to compare

Fixed

  • Remove garbage output

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