JSON repair tool for LLM outputs
Top 95.8% on sourcepulse
This Go library and CLI tool, json-repair
, addresses the common problem of malformed JSON output generated by Large Language Models (LLMs). It provides a robust solution for developers and data engineers who need to reliably parse and process this often-unpredictable data, saving significant debugging time.
How It Works
The library intelligently detects and corrects a wide array of JSON syntax and structural errors. It handles issues like single quotes, line feeds, unclosed arrays/objects, incorrect key-value pairs, and even comments within JSON strings. Its zero-dependency design ensures easy integration into existing Go projects and minimal overhead.
Quick Start & Requirements
go get github.com/RealAlexandreAI/json-repair
brew install realalexandreai/tap-jsonrepair/jsonrepair
Highlighted Details
Maintenance & Community
The project is open-source and welcomes contributions. A roadmap is available, with some features already implemented.
Licensing & Compatibility
Distributed under the GPLv3 License. This copyleft license may have implications for use in closed-source commercial applications.
Limitations & Caveats
The GPLv3 license may restrict commercial use in proprietary software without adherence to its terms.
1 month ago
Inactive