Repairs broken JSON: missing quotes and commas, unclosed brackets, trailing commas, unquoted keys, single quotes, comments, Python constants, NDJSON, Markdown code fences and list markers in LLM output, truncated documents, and more. A Ruby port of the jsonrepair JavaScript library — useful whenever JSON from LLMs, APIs, or logs does not strictly follow the standard.
Required Ruby Version
>= 3.0.0
Authors
Aleksandr Zykov
Versions
-
0.15.0
-
source
- 0.15.0 source June 17, 2026 (35 KB)
-
-
0.14.0
-
source
- 0.14.0 source June 17, 2026 (34 KB)
-
-
0.13.0
-
source
- 0.13.0 source June 17, 2026 (33 KB)
-
-
0.12.0
-
source
- 0.12.0 source June 12, 2026 (32.5 KB)
-
-
0.11.3
-
source
- 0.11.3 source June 12, 2026 (31 KB)
-