What is JSON pretty-printing?
Pretty-printing — also called formatting or beautifying — rewrites JSON with newlines and indentation so nested objects and arrays are visible at a glance. In JSON, whitespace between tokens is insignificant per RFC 8259 (ECMA-404), which means {"a":1} and the same object spread across several indented lines are byte-for-byte-different but represent the exact same value. A formatter parses the text into an in-memory value and re-serializes it with consistent spacing.
The operation is equivalent to JSON.stringify(value, null, 2) in JavaScript, where the third argument is the indentation width. Most languages ship the same capability — Python has json.dumps(obj, indent=2) and Go has json.MarshalIndent. JSON Copilot does this in the browser, so you get the same canonical output without piping data through a command line or a server.
Readable JSON matters because API responses, log lines, and config files often arrive minified on a single line. Formatting makes it easy to trace nesting, find the field you need, and produce clean git diffs where each changed key is one line instead of a wall of text that shows the whole document as modified.