JSON is the format most commonly used by web APIs, configuration files and data exports. Python dictionaries use a similar structure, but their literals are different: JSON uses true, false and null; Python uses True, False and None. This converter formats the result so you can paste it into a Python script, test fixture or notebook.
Paste {"active": true, "tags": ["api"], "owner": null}. The result is {'active': True, 'tags': ['api'], 'owner': None}. JSON requires double quotes around keys; Python allows single or double quoted strings.
A valid JSON document cannot have trailing commas, comments, or single-quoted strings. If the input comes from JavaScript rather than an API response, check those details first. Your data stays in your browser; it is not uploaded to our server.
Need the reverse operation? Use our Python dict to JSON converter. For a practical walkthrough, read our JSON to Python guide.