{
"color": "red",
"count": 2
}JSON studio is the workbench for one document. View chooses what you get back: raw text, a tree, a schema, or a validation sentence. Raw uses the Indentation control. Two spaces is the usual reading form. Zero spaces is the compact form, the same bytes a minifier would emit. Four and eight spaces are there when a house style asks for a wider indent.
Tree prints a foldable outline down to Tree depth, which starts at 8. Schema infers a draft 2020-12 document from the value you pasted. Validate returns Valid JSON when the text parses, and names the line and column when it does not. Each of those jobs also has its own page. This one keeps the document in place while you switch views.
{"color":"red","count":2}. View left on raw. Indentation left on 2.
{ "color": "red", "count": 2 } That form is 34 bytes. Indent 0 returns {"color":"red","count":2}, which is 25 bytes. Tree view prints $: Object(2), then "color": "red" and "count": 2.
One paste can be pretty-printed, outlined, described as a schema, or rejected with a line number, without moving the document to another tool.
The object {"color":"red","count":2} is 25 bytes. Indent 2 expands it to 34 bytes. Indent 4 expands it to 38 bytes.
A root line $: Object(2), then two indented lines, "color": "red" and "count": 2. Depth 8 is enough to show both keys.
Draft 2020-12. color is a string, count is an integer, and both keys are listed as required because both are present on the sample.
Validate, and the formatter and the validator, report the parser message with a position, line, and column. A missing comma after red is position 16, line 1 column 17.
JSON formatter is indent only. JSON viewer is the tree. JSON Schema from a sample is the schema. JSON validator is the syntax check. Studio is the switch among them.