aotakeda/ai-json-fixer
A simple JSON parser specifically designed to handle malformed JSON output from Large Language Models (LLMs) like GPT, Claude, and others.
This tool helps developers reliably get structured data out of AI model outputs. It takes raw text that contains JSON (even if it's malformed or embedded in markdown) and provides a clean, valid JSON object. Software engineers, data scientists, and AI application developers who integrate LLMs into their systems would use this to ensure data consistency.
No commits in the last 6 months. Available on npm.
Use this if your AI models sometimes produce JSON that isn't perfectly formatted, or include extra text and markdown that make it hard to parse programmatically.
Not ideal if you need a general-purpose JSON parser for standard, well-formed JSON, or if you're not working with Large Language Model outputs.
Stars
26
Forks
—
Language
TypeScript
License
MIT
Category
Last pushed
Jun 20, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/aotakeda/ai-json-fixer"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
mangiucugna/json_repair
A python module to repair invalid JSON from LLMs
antfu/shiki-stream
Streaming highlighting with Shiki. Useful for highlighting text streams like LLM outputs.
iw4p/partialjson
+1M Downloads! Repair invalid LLM JSON, commonly used to parse the output of LLMs — Parsing...
yokingma/fetch-sse
An easy API for making Event Source requests, with all the features of fetch(), Supports...
kaptinlin/jsonrepair
A high-performance Golang library for easily repairing invalid JSON documents. Designed to fix...