json_repair and repairjson

Both tools are direct competitors, offering similar functionalities for repairing invalid JSON generated by LLMs, with one being a mature Python module and the other a nascent Rust-backed solution.

json_repair
87
Verified
repairjson
31
Emerging
Maintenance 20/25
Adoption 25/25
Maturity 25/25
Community 17/25
Maintenance 13/25
Adoption 8/25
Maturity 10/25
Community 0/25
Stars: 4,585
Forks: 175
Downloads: 16,557,243
Commits (30d): 10
Language: Python
License: MIT
Stars: 1
Forks:
Downloads: 1,426
Commits (30d): 0
Language: Rust
License:
No risk flags
No License No Dependents

About json_repair

mangiucugna/json_repair

A python module to repair invalid JSON from LLMs

Provides syntax error correction for common LLM output mistakes—missing quotes, unescaped characters, incomplete arrays/objects—while preserving content integrity. Uses a two-stage approach: first attempts standard library `json.loads()` for performance, then falls back to a custom repair parser only on failure. Offers drop-in replacements for `json.load()` and `json.loads()`, with optional `skip_json_loads` and `strict` modes for performance tuning and validation control.

About repairjson

kyle-mirich/repairjson

Rust-backed repair of malformed JSON for LLM-style outputs

Scores updated daily from GitHub, PyPI, and npm data. How scores work