JSON property names must be quoted

Why {name: 1} is invalid JSON while {"name": 1} is valid, and how to fix a document whose keys are unquoted.

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 reports each unquoted name separately and offers to add the quotes, escaping the name properly if it contains characters that need it.

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