← all tools
JSON format
Pretty-print or minify JSON, with the error location when it’s malformed.
Result
Two jobs. Format takes the single line your API returned and makes it readable; minify takes the readable version and makes it a single line for pasting into a config or a fixture. When the input is malformed it reports the line and column rather than the bare "Unexpected token" that leaves you hunting through four hundred characters of one line.