JSON error reference

JSON property names must use double quotes

Every JSON object property name must be enclosed in double quotation marks.

01

Why it happens

  • JavaScript object literal syntax
  • Single quoted property names
  • A generated configuration that is not strict JSON
02

Guide

Invalid
{
  user_id: 42
}
Valid
{
  "user_id": 42
}
03

Common parser messages

Expected property name or }Property names must be doublequotedExpecting property name enclosed in double quotes
04

How to fix it

  1. 1

    Add double quotes around every property name.

  2. 2

    Keep the colon outside the closing quote.

  3. 3

    Check nested objects as well.

  4. 4

    Validate as strict JSON rather than JavaScript.

Jump to tool

Open broken example in JSON Repair

JSON Repair Tool