SuperSEOPlus

Development Tools

JSON Viewer

Check that JSON is valid, format it for reading, minify it for use, and browse it as a tree. When the JSON is invalid, the tool shows the error and where it is.

How to use it

  1. Paste your JSON.
  2. Press View as tree to validate and explore, or use Format or Minify.
  3. Copy the result.

Example

{"a":[1,2,{"b":true}]} shows an object containing an array with a nested object.

Why JSON fails

Most failures come from a short list of habits that JavaScript tolerates and JSON does not: a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and values such as NaN or undefined. The error message gives a position, so look just before it: the real mistake is often the character immediately preceding.

Common mistakes

  • Pasting a JavaScript object literal instead of JSON.
  • Assuming very large numbers survive exactly. JavaScript stores numbers as 64-bit floats, so integers above 9,007,199,254,740,991 can lose precision.
  • Minifying and forgetting that the result is harder to read, so keep the formatted copy.

To turn JSON into a spreadsheet, use the JSON to CSV converter.

Which tool fits your task?

This page is for validating and formatting JSON.

Questions

Is my data uploaded?

No. Parsing happens in your browser.

Why does it say position, line and column?

JSON errors are reported at a character position; the tool converts that to a line and column so you can find it.

Get practical SEO tips by email

Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.