E002Error
Trailing content after the JSON value
Extra content appears after the top-level value ended.
What it means
A JSON document contains exactly one top-level value. If more tokens follow — often two objects pasted back to back, or newline-delimited JSON (NDJSON) — the parser reports the leftover content.
Example
Invalid
{ "id": 1 }{ "id": 2 }Valid
[{ "id": 1 }, { "id": 2 }]How to fix it
Wrap multiple values in an array, or split them into separate documents.
Validate your JSON to see this and every other issue highlighted in one pass.
Diagnostics on this page come from @jsonlint/core, the open-source engine that powers the JSONLint validator. Install it with npm install @jsonlint/core.