Common mistakes and how to fix them
We entered common mistakes and checked the message shown in the band. None of these can be read by the browser's own JSON parser either.
The column is the number of characters counted from the start of the line. Full-width characters, such as Chinese or Japanese, also count as one character. When there are several mistakes, they are shown one at a time from the front. Fix one, and the next one appears in the band.
What changes when you sort keys?
With the same product data, turning on "Sort keys" put the keys in alphabetical order. Keys inside nested objects are sorted too.
stock and tags switched places, and so did tokyo and osaka inside stock. The order of "new" and "sale" inside tags did not change, because the order of an array can carry meaning in the data.
Tips for reading long JSON
- Press Ctrl+F (⌘+F on Mac) in the input box to find a key or value. You can also replace what you find with other text
- For minified one-line JSON, turn on "Wrap lines" in "View options" at the top right of the box to read it without scrolling sideways
- If you clear the box by mistake, press "Undo" in the notice that appears to bring it back