Validation protects value boundaries
Whitespace replacement cannot distinguish layout from text inside strings. The formatter validates keys, tables, arrays, numbers, booleans, and date-time values before applying conservative source edits.
Invalid source remains editable and receives a bounded diagnostic rather than a guessed repair.