Paste "almost JSON" — a Python dict, a JS object, JSON with comments or trailing commas — and get valid, formatted JSON!
input
→
result
Fix broken JSON!
Paste "almost JSON" — a Python dict, a JS object, JSON with comments or trailing commas — and get valid, formatted JSON!
Use Cases
- Paste Python or JS output
- Converts single quotes, True/False/None and tuples from print(dict), and unquoted keys from JS objects, into JSON.
- Clean up configs and logs
- Fixes comments, trailing or missing commas, smart quotes (“ ”) and truncated brackets, and wraps line-by-line JSON values into an array.
- MongoDB shell output
- Unwraps ObjectId("…"), ISODate("…") and NumberLong(…) to plain values.