JSON uses true, false and null

Why True, False and None cause a JSON parse error, and how to get valid JSON out of Python instead of a printed dictionary.

Open the JSON formatter

What the error looks like

Different engines word this differently. You may see any of these:

Why it happens

Example

Invalid
{'active': True, 'deleted': False, 'note': None}
Valid
{"active": true, "deleted": false, "note": null}

How this tool reports it

The formatter corrects all three literals and the surrounding single quotes together, so a pasted Python dictionary becomes valid JSON in one pass.

Paste your JSON into the formatter to see the exact line and column, or use the validator if you only need to check it.

Worth knowing