Repair malformed JSON from LLMs, APIs, logs, and user input in Python.
json_repair is a Python library that repairs malformed JSON from large language models, APIs, logs, and user input. It fixes common syntax errors including missing quotes, commas, brackets, comments, and truncated values, and can be used as a drop-in replacement for the standard library's `json.loads()` function or as a schema-guided repair tool. The project is built in Python 3.10+ and uses the uv package manager, with optional support for Pydantic v2 schemas and FastAPI integration. The library was created by an individual author (mangiucugna) and is maintained as a community-supported open-source project available on PyPI.