Using this result
How to read the JSON formatter
Pretty, compact, and the error line
The formatter parses the text you paste and prints it again. Pretty print adds indentation so objects and arrays are readable. Compact print removes that whitespace so the payload is smaller to copy into a header or a log. Neither mode changes the data. Object key order is preserved as parsed. Numbers stay numbers. The result is valid JSON if the input was valid JSON.
An error is a parse failure, and the message names the position. A trailing comma, a single quote, a comment, or a bare key are the usual causes. JavaScript object literals are not JSON. Undefined, NaN, and trailing commas will fail here even though a browser console accepts them. Fix the token the message points at, then format again. If the whole document is one quoted string, you pasted JSON that had already been stringified twice. Parse once, mentally, and paste the inner text.
What formatting does not validate
A green format only means the syntax is legal. It does not mean the object matches an API schema, that required fields are present, or that a signature is valid. A JWT pasted here is one string, so the formatter will show it as a string rather than as header and payload. Use the JWT Decoder for that. A large array that formats slowly is still only text. This page does not upload it.
Use the compact result when you are about to put JSON in a query string, then pass that result through URL Encode. Use pretty print when you are comparing two responses by eye. Whitespace differences disappear once both sides are formatted the same way, which is the point of the tool.