Missing comma or colon in JSON

Why 'Expected comma' and 'Expected colon' errors happen, and why the reported position is often not where the mistake is.

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 highlights the gap where the separator belongs rather than the token after it, and offers to insert the missing comma or colon.

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