Skip to content
jsonbeautifiers
English

JSON errors, explained

Or just paste the payload

Input

Nothing you paste leaves your browser. The connect-src allowlist makes that a browser guarantee rather than a promise. Check it yourself

JavaScript, Node and Chrome

Measured on Node v24.15.0 with V8 13.6.233.17. V8 rewrote nearly all of these messages in 2022, so each page carries both the current wording and the one you will find in older answers.

Python

Measured on CPython 3.14.3. Two of these messages are new in Python 3.13, so the version matters and each page says which.

PHP

PHP fails silently by default, which is the real problem. The page covers how to get an actual message out of it.

C# and .NET

Newtonsoft.Json and System.Text.Json word the same failure differently.

Java

Jackson, which is what almost everything in the JVM ecosystem uses underneath.

The four mistakes behind most of these

Strip away the wording and nearly every message on this page comes from one of four things.

It is not JSON at all
It is JavaScript or Python, not JSON
A string was built by concatenation
It is several documents, not one