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
04
How to fix it
- 1
Add double quotes around every property name.
- 2
Keep the colon outside the closing quote.
- 3
Check nested objects as well.
- 4
Validate as strict JSON rather than JavaScript.