Read a 40 KB one-line response without losing your mind
An API response arrives as a single line of 40,000 characters, and somewhere in it is the one field you need. Pretty-printing is not cosmetic β indentation turns an unreadable blob into a tree you can scan in seconds.
Indentation width matters more than people expect. Two spaces fit more on screen for deeply nested payloads; four spaces are easier for shallow ones. When a payload nests six levels deep, the fastest approach is to search for the key name rather than scrolling β a formatted document lets you jump straight to the field.
Structured logs are JSON lines, one object per line. Formatting a whole log file as a single document fails because it is not one document β validate line by line, or extract the offending line and format that. When you paste a log for someone else, redact tokens and authorisation headers first; see sharing snippets securely.
API payloads often contain a string field that is itself serialised JSON. Formatting the outer document leaves that field as one giant escaped string. Copy the inner string, unescape it, and format it separately β most formatters let you paste again in a second tab.
Formatting is fine at any size for a browser tool, but very large payloads slow down editors and browsers. If a response is hundreds of megabytes, you want a command-line tool with a streaming parser, not a paste box. For everyday API debugging β a few hundred kilobytes β a browser formatter is the fastest option and keeps the data local.
A formatted payload is easier to screenshot, and screenshots leak tokens. Before you format anything from production, decide whether you need the real values at all; a redacted copy usually answers the question. This is also why client-side validation matters β your payload never leaves the browser with the JSON tool.
Related: common JSON errors and the JSON formatter guide.
Copy the raw response body, paste it into a browser JSON formatter and press format. Fix any validation error first, because formatting invalid JSON produces misleading output.
Format for reading and debugging, minify for transport and storage. Never hand-edit a minified payload β errors become invisible on a single line.
A JSON-lines log is many documents, not one. Validate and format it line by line, or extract the relevant line and format that.
Not with a client-side tool like PodNet's JSON formatter β parsing happens in your browser and the payload is never sent to a server.