kaptinlin/jsonrepair

A high-performance Golang library for easily repairing invalid JSON documents. Designed to fix common JSON issues and optimize JSON content generated by language models (LLMs).

47
/ 100
Emerging

This library helps Go developers clean up malformed JSON data, especially content generated by large language models. You provide a messy JSON string, and it returns a valid, corrected JSON string. It's for Go application developers who need to process user input or external data streams that might contain common JSON errors.

Use this if you are a Go developer building applications that consume JSON from untrusted sources like LLMs, APIs, or user input, and need to automatically fix common formatting errors.

Not ideal if you need to strictly validate JSON without attempting any repair, or if you are not working in the Go programming language.

Go development API integration data processing LLM output handling data parsing
No Package No Dependents
Maintenance 10 / 25
Adoption 9 / 25
Maturity 16 / 25
Community 12 / 25

How are scores calculated?

Stars

94

Forks

9

Language

Go

License

MIT

Last pushed

Feb 28, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/kaptinlin/jsonrepair"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.