json_repair and jsonrepair
These are competitors offering the same core functionality (repairing malformed JSON from LLMs) in different languages, with the Python implementation vastly more mature and widely adopted based on its significantly higher stars and download metrics.
About json_repair
mangiucugna/json_repair
A python module to repair invalid JSON from LLMs
This tool helps developers clean up messy JSON data, especially when it comes from large language models (LLMs) that might make formatting mistakes. You feed it a JSON string that's not quite right, and it gives you back a perfectly valid, standard JSON string or object. It's for software engineers who integrate LLMs or other external services and need reliable data parsing.
About jsonrepair
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).
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.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work