json_repair and json-repair
These are competitors offering similar JSON repair functionality for LLM outputs, with A being the dominant choice due to its Python implementation, broader adoption, and significantly larger user base, while B provides an alternative specifically for Java environments.
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 json-repair
HAibiiin/json-repair
Repair JSON! A Java library for fixing JSON anomalies generated by LLMs.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work