What JSON formatting does
JSON is often compressed into a single line for transmission. Formatting adds consistent indentation and line breaks so objects, arrays, keys, and values are easier to inspect. It changes whitespace only—the underlying data remains the same.