Ross ROSS = Recommend OSS · open-source software intelligence for agents

mangiucugna/json_repair

Repair malformed JSON from LLMs, APIs, logs, and user input in Python. observed · 2026-08-28

github.com/mangiucugna/json_repair · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

91/100

  • Activity 99
  • Release rhythm 87
  • Longevity 78
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 4.0
  • age_days: 1092
  • days_rel: 8
  • days_push: 8
  • n_releases_24m: 105

Full methodology

Adoption not part of the score

5079 stars · 214 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A Python library that repairs malformed JSON strings, such as broken output from LLMs, APIs, logs, or user input. It works as a drop-in fallback for .loads(), supports schema-guided repair, streaming, and also provides a CLI and online demo.

Use cases

  • parse malformed JSON from LLM responses
  • fix broken JSON with missing quotes and trailing commas
  • repair truncated JSON from logs or APIs
  • validate and coerce JSON against a JSON Schema
  • drop-in replacement for .loads on unreliable input
  • repair JSON in streaming LLM output

When to choose

  • you consume JSON from LLMs that often emit invalid syntax
  • you need a lightweight Python fallback when .loads fails
  • you want schema-guided repair and type coercion
  • you need to fix JSON from logs, webhooks, or user input

When to avoid

  • your JSON is already well-formed and standard .loads suffices
  • you need strict validation that rejects rather than repairs invalid input
  • you work outside the Python ecosystem

Facets

library · maturity active

parser serialization cli large-language-models developer-tools parsers apis python cli cross-platform -repair llm-output structured-output pydantic -schema streaming

3 sources

Member repositories

RepositoryRoleHealth v2
mangiucugna/json_repairmain91

For agents

markdown · JSON · MCP: product_card(name="mangiucugna/json_repair")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem