16 chars · 1 line
Two-way sync · Edit either side and the other updates automatically.
{"id":1}{"id":2}16 chars · 1 line
Two-way sync · Edit either side and the other updates automatically.
{"id":1}{"id":2}JSON top-level structure error
A standard JSON document contains exactly one top-level value. Two valid objects placed back to back are not one valid document, even though each object parses correctly on its own. This tool is free to use. No account or payment is required.
Last updated
Diagnose the problem
The parser is allowed to ignore whitespace after the root value, but not another object, array, number, string, or arbitrary text. This often happens when records are appended without a container format.
Use a JSON array when the complete collection is one document. Use JSONL when records are intentionally independent and line-delimited. Avoid inventing separators that the consumer does not expect.
Resolve the issue
Use the solving tool
Run the focused checker with the failing payload to locate the parser error and inspect the nearby source before changing data.
Open JSON Error CheckerThe objects are individually valid but invalid when concatenated as one JSON document.
{"id":1}{"id":2}[{"id":1},{"id":2}]Common questions
Not in one standard JSON document. Wrap them in an array or use a record-oriented format such as JSONL.
Yes. Whitespace may follow the root value, but another non-whitespace token makes the document invalid.
Not necessarily. The first value may be completely valid; the error can be caused only by content that appears after it.
Debugging a specific JSON issue? Browse JSON troubleshooting.