JSON strings must use double quotes

JSON has no single-quoted string form. Property names and string values both require double quotes. Here is why, and how to convert safely.

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
{
  'name': 'My Mosaic',
  'version': 2
}
Valid
{
  "name": "My Mosaic",
  "version": 2
}

How this tool reports it

The formatter converts single-quoted strings to valid double-quoted ones, re-escaping the contents so a value that already contains a double quote survives the conversion.

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