Json Repair Tool 🛠️
Stop your AI pipelines from crashing on bad JSON.
json-repair-tool is a zero-config wrapper that combines fuzzy JSON repair with "soft coercion" for Pydantic models. It is designed specifically for handling the messy, non-deterministic output of Large Language Models (LLMs).
The Problem
LLMs are bad at strict structured output. They often return:
- Markdown code blocks (
```json ...) - Python booleans (
Trueinstead oftrue) - Chatty prefixes ("Here is your data: { ... }")
- "Fuzzy" types ("$100" instead of
100.0)
Quick Start
pip install json-repair-tool
Metadata
Release files for json-repair-tool 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| json_repair_tool-0.1.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| json_repair_tool-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / json_repair_tool-0.1.1.tar.gz
| Download URL | json_repair_tool-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
225abe01d379fc78f6ec386c8341a5d4b8b4d6af2b1d099216e960def506e96b
|
|
BLAKE2b-256 checksum How to use checksums |
d42b89db60aef2765d92f0115e503089a05b22651da012306a18c7dd9d8e07b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / json_repair_tool-0.1.1-py3-none-any.whl
| Download URL | json_repair_tool-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7a9e6e670abd8b68dbc99b0a048c10e7c89311f1130517c50e33d443529e406
|
|
BLAKE2b-256 checksum How to use checksums |
18e1ac2dfc5e963aedee570d54d61c69b8bbe14937a49909e918bfc5aacf8429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|