Input — paste anything

Fix Python Booleans in JSON — Convert True/False/None to true/false/null

Python uses True, False, and None — JSON requires lowercase true, false, and null. Copying a Python dict directly into a JSON context always fails. Paste your Python output below and JSONBlitz converts it to valid JSON instantly.

⚡ Auto-fixed issues see changes ↓
Ready — paste JSON or any text containing JSON
🌳
Tree view appears here after processing
Click nodes to copy JSONPath • Single-click a leaf to copy value
Formatted output appears here...
Process JSON to generate code...
Insights appear after processing
Shows what JSONBlitz changed to fix your JSON. Process some broken JSON first.
No changes recorded yet.
⌘↵ fix & copy   ⌘⇧V paste & fix   ⌘K actions   click copy value   dblclick copy path © 2026 JSONBlitz

Fix Python Booleans in JSON — True/False/None to true/false/null

Python dictionaries use True, False, and None as boolean and null values. JSON requires lowercase equivalents: true, false, and null. When you copy a Python dict directly — from a print statement, a debugger, a Jupyter notebook, or a Django shell — JSON.parse will throw an "Unexpected token T" or "Unexpected token F" error immediately.

Why Python and JSON Use Different Syntax

Python capitalized its boolean literals by convention. JSON, defined by RFC 8259, mandates lowercase. The two formats are otherwise structurally similar, which is why copy-paste from Python to JSON is so common — and so consistently broken. JSONBlitz detects Python-style values and converts them automatically before parsing.

What JSONBlitz Fixes

True → true, False → false, None → null. Also handles single quotes, trailing commas, and unquoted keys that often appear in Python repr output simultaneously. One paste handles all of them.

Frequently Asked Questions

Why does my Python dict break JSON?
Python uses True, False, and None (capitalised). JSON requires true, false, and null (lowercase). They are not interchangeable — any JSON parser will throw an error on the Python versions.
Does JSONBlitz handle other Python-specific syntax?
Yes. Python repr output often includes single quotes and trailing commas alongside capitalised booleans. JSONBlitz fixes all of them in a single pass.
What about Python's None vs JSON null?
Python's None serialises to null in JSON. JSONBlitz converts None → null automatically.
Recent Sessions