josdejong/jsonrepair
Repair invalid JSON documents observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 90
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2130
- days_rel: n/a
- days_push: 61
- n_releases_24m: 0
Adoption not part of the score
2397 stars · 88 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library that repairs invalid JSON documents, fixing issues like missing quotes, commas, brackets, single quotes, comments, trailing commas, JSONP, MongoDB types, and newline-delimited JSON. It offers both a simple function API and a streaming API for handling arbitrarily large documents.
Use cases
- repair broken json from llm output
- fix invalid json copied from javascript code
- convert ndjson to a json array
- strip comments and trailing commas from json
- repair truncated json files
- clean up jsonp or mongodb-flavored json
When to choose
- you receive malformed JSON from LLMs, APIs, or copy-pasted sources and need it parsed
- you need to stream-repair very large JSON documents
- you want a lightweight npm library usable in ESM, CommonJS, or UMD projects
When to avoid
- you need strict JSON validation rather than lenient repair
- you need a parser for formats other than JSON
- your project is not in a JavaScript/TypeScript runtime
Facets
library · maturity active
parser serialization json developer-tools developer-tools parsers files large-language-models cross-platform json-repair llm-output-fixing streaming typescript nodejs javascript
3 sources
- readme: https://github.com/josdejong/jsonrepair · fetched 2026-08-28 · 79a0ea71e041
- homepage: https://josdejong.github.io/jsonrepair/ · fetched 2026-08-29 · 95fb43ead4eb
- registry_npm: https://registry.npmjs.org/jsonrepair · fetched 2026-08-29 · d0a4ad3952df
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| josdejong/jsonrepair | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="josdejong/jsonrepair")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem