ToolerCat / JSON Formatter & Fixer / Unexpected end of JSON input

Unexpected end of JSON input

What the error means, why it happens and how to fix it in seconds.

The parser reached the end before the structure was complete: a missing } or ], an unterminated string, or an empty response body. If you call response.json(), check that the body is not empty (HTTP 204) first.

Example of broken JSON:

{
  "customer": {
    "id": "cus_1",
    "email": "a@b.co"

Open the JSON fixer →