Free JSON Formatter
Minified JSON (no whitespace) is smaller for network transfer, which is why APIs return it by default — but it's unreadable for debugging. Pretty-printing adds indentation and line breaks back in so you can actually read the structure while developing or debugging an API response.
Worked Example
Example: Input {"name":"Alex","active":true,"tags":["a","b"]} pretty-printed with 2-space indent becomes:
{
"name": "Alex",
"active": true,
"tags": [
"a",
"b"
]
}
Formula / Method
Uses the browser's native JSON.parse() then JSON.stringify(obj, null, indentSize) — no custom parser, so behavior matches what your actual application will do with the same JSON.
Worked Example
Example: Input {"name":"Alex","active":true,"tags":["a","b"]} pretty-printed with 2-space indent becomes:
{
"name": "Alex",
"active": true,
"tags": [
"a",
"b"
]
} Formula / Method
Uses the browser's native JSON.parse() then JSON.stringify(obj, null, indentSize) — no custom parser, so behavior matches what your actual application will do with the same JSON.