Formatting reveals structure without repairing data
A formatter first has to parse the input as JSON. If the text contains a trailing comma, a JavaScript comment, an unquoted member name, or a single-quoted string, strict parsing stops and the original text remains available to edit. That distinction matters because silently repairing an ambiguous payload can hide the actual defect in an API response or configuration file.
Once parsing succeeds, indentation is presentation. Two spaces keeps large fixtures compact, four spaces creates stronger visual nesting, and tabs follow an editor-oriented workflow. None of those choices changes the values represented by the document. Tool Swim serializes the parsed value again and reports the result locally.