Json-repair

Latest version: v0.17.0

Safety actively analyzes 623775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

3.0.0

- Complete rewrite of the parser in TypeScript, with improved performance.
- Can repair some additional cases of broken JSON.

⚠ BREAKING CHANGES

- Changed the API from default export `import jsonrepair from 'jsonrepair'` to named export `import { jsonrepair} from 'jsonrepair'`
- Changed in UMD export from `jsonrepair` to `JSONRepair.jsonrepair`
- Changed the error class to `JSONRepairError` with a property `.position`

2.2.1

- Improved handling of trailing commas.
- Improved handling of newline delimited JSON containing commas.
- Improved handling of repairing objects/arrays with missing closing bracket.

2.2.0

- Implement 16: turn an escaped string containing JSON into valid JSON.

2.1.0

- Implemented command line interface (CLI), see 34.

2.0.1

- Performance improvements.

2.0.0

- Renamed the library from `simple-json-repair` to `jsonrepair`.
Thanks a lot vmx for making this npm package name available!
- Change source code from TypeScript to JavaScript. Reasons: TypeScript
conflicts with using native ESM, requiring ugly workarounds.
Due to some (old) TypeScript issues we also have to use `ts-ignore` a lot.
Using TypeScript makes running tests slower. And in this case, TypeScript
hardly adds value since we have a very simple API and function signatures.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.