mangiucugna/json_repair

A python module to repair invalid JSON from LLMs

74
/ 100
Verified

This tool helps developers clean up messy JSON data, especially when it comes from large language models (LLMs) that might make formatting mistakes. You feed it a JSON string that's not quite right, and it gives you back a perfectly valid, standard JSON string or object. It's for software engineers who integrate LLMs or other external services and need reliable data parsing.

4,585 stars. Used by 39 other packages. Actively maintained with 14 commits in the last 30 days. Available on PyPI.

Use this if you frequently receive malformed JSON strings from APIs, LLMs, or other sources and need a robust way to automatically correct common syntax errors so your applications can process the data.

Not ideal if your JSON errors are due to fundamental data structure issues or missing critical information, as this tool focuses on syntax repair rather than semantic correction or data imputation.

API integration data parsing LLM output processing developer tools data cleaning
Maintenance 17 / 25
Adoption 15 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

4,585

Forks

175

Language

Python

License

MIT

Last pushed

Mar 07, 2026

Commits (30d)

14

Reverse dependents

39

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/mangiucugna/json_repair"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.