Common JSON errors and how to fix them
Trailing commas, single quotes, unquoted keys and other JSON mistakes, with quick fixes.
Trailing commas
JSON does not allow a comma after the last item in an object or array. Remove the trailing comma to make it valid.
Single quotes
Strings and keys in JSON must use double quotes. Replace single quotes with double quotes.
Unquoted keys
Every object key must be a double-quoted string. Wrap bare keys in double quotes.