The workshop · The text and data corner
The text and data cornerFormat and validate JSON
The parser is written here, by hand, rather than borrowed from the browser: because the browser's error message is normalised by no specification at all, and differs from one browser to the next. This one gives the line, the column, and what was expected, the same everywhere.
Pasted JSON
Your text never leaves your device
This tool works entirely inside your browser. What you type or paste here is sent nowhere, and nothing is kept once the tab is closed.
Checkable in ten seconds, without taking our word for it:
- Open your browser's inspector: the F12 key (or Ctrl+Shift+I, or Cmd+Option+I on a Mac).
- Go to the “Network” tab, then clear the list.
- Type or paste some text on this page and run the tool. The list stays empty: no request goes out.
- To go further: cut your connection and do it again. The tool still works.
This absence of requests is also checked BY MACHINE before every release: a lock drives a real browser, processes a real file, and refuses to publish if a single byte goes out.
Going further
JSON as the standard defines it: no comments, no trailing comma before a closing brace, no unquoted keys. Those three departures are common, and the tool refuses them by name, because a program will refuse them too.
VerifyThe proof, step by stepThe network inspector check, explained one gesture at a time, with screenshots.
The cornerThe text and data cornerThe other tools in this corner of the workshop.
UnderstandHow this is builtThe formats actually handled, browser by browser, and what we ruled out.