json_repair and partialjson

These are competitors—both parse and repair malformed JSON from LLM outputs, with json_repair offering more mature adoption while partialjson specializes in handling partial/streaming JSON responses.

json_repair
74
Verified
partialjson
54
Established
Maintenance 17/25
Adoption 15/25
Maturity 25/25
Community 17/25
Maintenance 10/25
Adoption 9/25
Maturity 25/25
Community 10/25
Stars: 4,585
Forks: 175
Downloads:
Commits (30d): 14
Language: Python
License: MIT
Stars: 99
Forks: 7
Downloads:
Commits (30d): 0
Language: Python
License: MIT
No risk flags
No Dependents

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.

API integration data parsing LLM output processing developer tools data cleaning

About partialjson

iw4p/partialjson

+1M Downloads! Repair invalid LLM JSON, commonly used to parse the output of LLMs — Parsing ChatGPT and llm JSON stream response — Partial and incomplete JSON parser python library for OpenAI | repair invalid JSON, parse output of LLMs

When working with AI language models, you often receive data that looks like a structured list or object, but it's cut off or malformed. This tool takes that incomplete, text-based output from an AI and converts it into a usable, structured data format like a Python dictionary or list, even if it's not perfectly formed. It's for developers building applications that rely on AI responses, ensuring they can reliably process the AI's output into structured data for further use.

AI-integration LLM-output-parsing data-extraction developer-tooling API-response-handling

Scores updated daily from GitHub, PyPI, and npm data. How scores work