ToolerCat / JSON Formatter & Fixer / Single quotes in JSON

Single quotes in JSON

What the error means, why it happens and how to fix it in seconds.

JSON strings and keys must use double quotes. {'a': 'b'} is a Python dict / JS object literal, not JSON. In Python use json.dumps() instead of str() to produce valid JSON.

Example of broken JSON:

{'event': 'payment.succeeded', 'amount': 1999}

Open the JSON fixer →