Tools JSON workbench

Free tool · no signup

JSON workbench

Paste a payload, a dataLayer push or a GTM export. Format it, minify it for the request body, or find the character that broke the parse.

  • Browser parser
  • Exact error position
  • Nothing uploaded

JSON

What it reports

OutputWhy it is on the screen
Parse result and the exact character positionA trailing comma or a Chinese full stop is invisible in a 40-line payload; the position is not
Byte size, original and formattedRequest limits are bytes, not characters, and indentation itself costs payload
Keys and depthGTM exports and CAPI bodies should be flat-ish; unexpected depth is usually a wrapper you did not mean to send
Minified outputWhat actually goes over the wire — formatted JSON is for reading, not sending

The three breaks I see most

  1. A trailing comma. Legal in JavaScript objects, illegal in JSON. A hand-edited GTM export picks one up almost every time.
  2. Single quotes. {'event': 'Purchase'} is valid JS and invalid JSON. It is what you get when someone copies from code rather than from an export.
  3. Smart quotes. A payload pasted through a document editor arrives with curly quotes that look identical at 13px and break the parse.

All three are format errors. None of them tell you whether the fields are the ones the platform wants — a perfectly valid payload can still be rejected for a millisecond timestamp. That is the CAPI payload check next door.

Related tools

Questions this raises

Does my JSON get uploaded?

No. The parse runs in this tab with the browser's own JSON parser. There is no endpoint and no request — the payload of a CAPI event contains customer hashes, and those should not travel to validate a comma.

Why does a payload that looks fine fail to parse?

Almost always a trailing comma, a single quote instead of a double quote, or a smart quote pasted from a document. The error position points at the character after the break, which is why it looks off by one line.

Can it validate against a schema?

Not here. This checks that the JSON is well formed, which is the first of two questions. The second — are the fields right for the platform — is what the CAPI payload validator answers, field by field.

Why show byte size?

Because request limits are measured in bytes, not characters, and an unicode-heavy payload is larger than it looks. A 1 MB body is rejected regardless of how tidy the indentation is.

Want the payload checks as a checklist?

Format first, fields second, then the request limit — the order that stops a fix from becoming a rewrite.

One email with the file, then nothing unless you reply. Your address is not added to a list.

🔒 Secure checkout
Loading secure checkout…
Payments by Stripe · Cards, Apple Pay, Google Pay