Common syntax errors and how to fix them:
Error 1: Wrong quotation marks
Bad:
(These are curly quotes from Word/Google Docs)
Good:
(These are straight quotes)
Fix: Never write JSON in Word. Use code editor.
Error 2: Missing or extra commas
Bad:
{
"name": "Title",
"author": "John"
"date": "2025-12-31"
}
(Missing comma after author)
Good:
{
"name": "Title",
"author": "John",
"date": "2025-12-31"
}
Error 3: Trailing comma
Bad:
{
"name": "Title",
"author": "John",
}
(Comma after last property)
Good:
{
"name": "Title",
"author": "John"
}
Error 4: Unbalanced brackets
Count opening and closing brackets.
Every { needs matching }.
Every [ needs matching ].
Pro tip:
Use a JSON validator like jsonlint.com first.
Catches syntax before schema-specific issues.