json_repair and jsonrepair

These are competitors offering the same core functionality (repairing malformed JSON from LLMs) in different languages, with the Python implementation vastly more mature and widely adopted based on its significantly higher stars and download metrics.

json_repair
87
Verified
jsonrepair
47
Emerging
Maintenance 20/25
Adoption 25/25
Maturity 25/25
Community 17/25
Maintenance 10/25
Adoption 9/25
Maturity 16/25
Community 12/25
Stars: 4,585
Forks: 175
Downloads: 16,557,243
Commits (30d): 10
Language: Python
License: MIT
Stars: 94
Forks: 9
Downloads:
Commits (30d): 0
Language: Go
License: MIT
No risk flags
No Package 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 jsonrepair

kaptinlin/jsonrepair

A high-performance Golang library for easily repairing invalid JSON documents. Designed to fix common JSON issues and optimize JSON content generated by language models (LLMs).

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