$devtoolkit.sh/examples/json/api-response

Format a REST API Response

REST APIs return compact JSON that is hard to read at a glance. Paste this example response into the formatter to see nested objects and arrays laid out with clear indentation. The formatter validates the structure and highlights any syntax errors before rendering. Use this as a starting point when debugging API integrations or comparing response schemas across environments.

Example
{"status":"success","code":200,"data":{"user":{"id":42,"name":"Jane Smith","email":"[email protected]","role":"admin"},"pagination":{"page":1,"perPage":20,"total":137}},"meta":{"requestId":"req_8f3a2b","duration":34}}
[ open in JSON Formatter → ]

FAQ

Why is API JSON returned minified?
Servers strip whitespace from JSON responses to reduce payload size and save bandwidth, especially for high-traffic APIs.
Can I format nested objects and arrays?
Yes. The formatter handles arbitrarily deep nesting and renders each level with consistent indentation.
Does formatting change the data?
No. Formatting only adds whitespace. The data values, keys, and structure remain identical to the original.

Related Examples

/examples/json/api-responsev1.0.0