Format a REST API Response
Pretty-print a realistic API response for easier debugging.
Input
{"status":"ok","data":{"id":"abc123","createdAt":"2026-01-15T10:30:00Z","items":[{"sku":"A1","qty":2},{"sku":"B7","qty":1}]},"meta":{"page":1,"total":42}}Output
{
"status": "ok",
"data": {
"id": "abc123",
"createdAt": "2026-01-15T10:30:00Z",
"items": [
{ "sku": "A1", "qty": 2 },
{ "sku": "B7", "qty": 1 }
]
},
"meta": {
"page": 1,
"total": 42
}
}How it works
Indented output makes it easy to scan nested fields like data.items and meta.total at a glance.
Try it yourself
Open the full JSON Formatter to run this example on your own data.
Open JSON Formatter