Do not leave a comma after the last item.
Section: Common parse failures
Trailing commas are invalid
json
json
[
1,
2,
3
]Explanation
`[1,2,3,]` is invalid JSON.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Common parse failures
Raw newlines inside strings are invalid
Use `\n` rather than an actual line break inside a string literal.
Rewrite valid JSON in normalized form
Read and immediately re-emit clean JSON.