mangiucugna/json_repair — Repair malformed JSON from LLMs, APIs, logs, and user input in Python.
Description and use
Mangiucugna/json_repair is a lightweight Python library that automatically detects and fixes malformed JSON generated by large language models, APIs, logs, or user input. It provides simple functions to sanitize, correct common syntax errors, and return valid JSON objects, making data handling more robust in AI/ML pipelines, backend services, and development tools. The package is open‑source, easy to integrate, and designed to streamline error‑prone JSON processing.
Problem
mangiucugna/json_repair helps add AI capability without starting from a blank model stack.
Outcome
Medium: useful for prototypes or internal workflows, with dependency and maintenance checks before production.
Workflow
- prototype AI features
- build RAG or agent workflows
- evaluate model tooling
Evidence
Repair malformed JSON from LLMs, APIs, logs, and user input in Python.
- Record date: 2026-09-11T07:49:06.416Z