fix-busted-json
Fixes broken JSON string objects
Decision gist · record as of 2026-08-14
Yes, if you regularly encounter malformed JSON from LLMs or need to extract JSON from unstructured text. The package is lightweight, dependency-free, and handles a well-defined set of real-world syntax errors. The aging maintenance status is not a blocker for a focused utility with no external dependencies and no known vulnerabilities, but do not expect active development or rapid response to new issues.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- Low install friction with no runtime dependencies.
- Maintenance status is aging (208 days since last release), though the package was last released 2026-01-18.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows free use, modification, and distribution with minimal restrictions.
last release 2026-01-18 (208 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 100,668 downloads/mo, #12,976 on PyPI
Alternatives
Verify before relying
pip install fix-busted-json
from fix_busted_json import repair_json
invalid_json = "{ name: 'John' 'age': 30, 'city': 'New' + ' York', }"
fixed_json = repair_json(invalid_json)
print(fixed_json)- Whether the repair heuristics handle all edge cases reliably or fail gracefully on deeply nested or unusual malformed JSON
- Performance characteristics on very large JSON strings or documents with many embedded objects
What it is and what it does
fix-busted-json is a Python utility that takes JSON strings with common syntax violations and returns valid JSON. It handles unquoted keys, incorrect quote styles (single quotes, backticks, curly quotes), missing commas, trailing commas, Python literals (True/False/None), string concatenation, and various escaping edge cases. The package also provides helper functions to locate and extract JSON objects embedded within plain text—a use case that emerged from processing large language model outputs, which often produce JSON-like structures with syntax errors.
The package has no runtime dependencies and supports Python 3.6 and later. It is designed as a lightweight, focused tool for a specific problem: when you have text containing JSON that is almost valid but has known categories of errors, fix-busted-json can normalize it into parseable form without requiring manual intervention or complex error handling.
Use it for
- Extract and repair JSON output from large language model completions that contain syntax errors
- Parse JSON-like objects embedded in log files or unstructured text with quote and comma issues
- Normalize malformed JSON responses from APIs or third-party tools before processing
- Find and pretty-print all JSON objects within a larger text document, including nested objects
- Convert Python dict-like syntax (with True/False/None) into valid JSON for downstream processing
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you regularly encounter malformed JSON from LLMs or need to extract JSON from unstructured text.
The package is lightweight, dependency-free, and handles a well-defined set of real-world syntax errors. The aging maintenance status is not a blocker for a focused utility with no external dependencies and no known vulnerabilities, but do not expect active development or rapid response to new issues.
Install
fix-busted-json on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging (208 days since last release), though the package was last released 2026-01-18.
Requires Python 3.6 or later.
License in practice
MIT license (permissive) allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install fix-busted-json
from fix_busted_json import repair_json
invalid_json = "{ name: 'John' 'age': 30, 'city': 'New' + ' York', }"
fixed_json = repair_json(invalid_json)
print(fixed_json)
Verify before relying
- Whether the repair heuristics handle all edge cases reliably or fail gracefully on deeply nested or unusual malformed JSON
- Performance characteristics on very large JSON strings or documents with many embedded objects
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 208 days since the last release |
| First released | |
| Downloads | 100,668 / month, #12,976 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: fix_busted_json-0.0.19-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “repair invalid json”
- fix-busted-jsonRepairs malformed JSON strings by fixing common syntax errors like…
- json-repairParses and repairs malformed JSON strings from LLMs, APIs, logs, and…
- bnunicodenormalizerNormalizes Bangla Unicode text by fixing invalid character sequences,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also json-repair · jsonquerylang · json5kit · partialjson · chompjs · smartypants · json5 · jsoncomment · jstyleson · json-with-comments