JSON data types, visually explained
Six types, six colors: this visual tour shows how jsonblocks paints every JSON value so you can read structure at a glance. Open the viewer alongside and follow each example live.
Six types, six colors: this visual tour shows how jsonblocks paints every JSON value so you can read structure at a glance. Open the viewer alongside and follow each example live.
Reading raw JSON means pattern-matching punctuation: is 1024 a number or part of a string? Did that null come with quotes? Type badges remove the ambiguity by labeling every value with its type in its own color.
{
"name": "Ada Lovelace",
"id": 1024,
"score": 98.6,
"verified": true,
"nickname": null,
"roles": ["admin", "editor"],
"address": { "city": "London" }
}Paste this into the viewer: seven values, six badges. Toggle the badges off and on to feel how much structure the colors carry - then toggle array indices and watch $[1] addressing appear on every item.
Once you read types fluently, the validator's line-and-column reports and the path finder's previews click into place: every tool in jsonblocks speaks the same six-type language.
Yes. The Type badges checkbox in any viewer toolbar toggles them, and array indices toggle separately. The colors stay on the values themselves either way.
No - one color per type, consistently across the viewer, the validator summary, and the path finder. Depth is shown by nesting, not color.