JSON error reference

Every common way JSON.parse fails, what the message actually points at, and the specific fix — with a broken and a working example you can open in the validator.

Two things make these errors harder to read than they should be. The first is that the reported position is where the parser gave up, not where the mistake is — a missing comma is usually reported a token or two later. The second is that the engines word the same failure completely differently, and V8 changed its own wording around Chrome 109: what used to be Unexpected token } in JSON at position 8 is now ...is not valid JSON with a snippet. Each page below lists the wordings you are likely to see so you can match yours.

The fastest way to find any of them

Paste the document into the JSON validator. It converts the parser's character offset into a line and column, highlights the spot, and will repair the mistakes that can be repaired unambiguously. Nothing is uploaded — the parsing happens in your browser.

No cookies, no accounts, no tracking. Your JSON and text are processed entirely in your browser and never sent anywhere. We count anonymous page views (the page address only, nothing about you or your device), and use localStorage to remember your theme.