Skip to content
J

Json Repair

Repair malformed JSON from LLMs, APIs, logs, and user input in Python

by mangiucugnaFree

#689in AI
0In stores

Description

json_repair is a Python library that repairs malformed JSON, such as the output of LLMs, API responses, logs and user input. It fixes missin…

Highlights

  • Repairs JSON from LLMs, APIs, logs and user input
  • Fixes missing quotes, commas, brackets and comments
  • Drop-in fallback for json.loads()
  • Completes truncated values with defaults
  • Live demo in the browser

Ratings & Reviews

No ratings yet

Be the first to rate Json Repair.

People also visit

J

JSONFix

AI-powered JSON repair tool that instantly fixes malformed JSON

AI
Launch
P

Partial Json Parser

Parse partial JSON generated by LLM

AI
Launch
J

JSON Lint

Easiest JSON Formatter & Validator Tool

Developer Tools
Launch
P

Partial Json Parser JS

Parse partial JSON generated by LLM

AI
Launch
S

Svelte Jsoneditor

A web-based tool to view, edit, format, repair, query, transform

Developer Tools
Launch
B

BestJSON

Free browser tools to format, validate, repair

Developer Tools
Launch

Json Repair FAQ

What does json_repair do?

It takes malformed JSON and returns valid JSON, keeping the content where possible.

How do I install it?

Run pip install json-repair.

Can I use it instead of json.loads?

Yes. The README describes it as a drop-in fallback for json.loads(), and also as a schema-guided repair step.

What kinds of errors does it fix?

Missing quotes, misplaced commas, unescaped characters, missing brackets, comments, stray prose and truncated values.

Can I try it without installing?

Yes. The README links a live demo where you can validate or repair your JSON online.

Is it free?

Yes. It is open source and the code is on GitHub. The author asks for sponsorship if it helps your work.

What are the best Json Repair alternatives?

Popular alternatives to Json Repair include JSONFix, Partial Json Parser and Partial Json Parser JS. See all Json Repair alternatives

Developer Stuff

Badges