E004Error

Unexpected end of input

The document ended while a value was still expected.

What it means

This usually means the JSON was truncated — cut off by a size limit, a failed copy/paste, or a stream that closed early — so a value that should follow a comma or colon is missing.

Example

Invalid
{ "items": [1, 2,
Valid
{ "items": [1, 2] }

How to fix it

Complete the missing value and close any open objects or arrays.

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.