Debugging an API response
Pasting the raw response and formatting it is the first step to understanding what a service returns.
Format and validate JSON, with error detection.
🔒 This file is processed in your browser. It is never uploaded anywhere.
…
JSON is the format almost all data travels in between applications today. It is human-readable, but when transmitted it usually arrives on a single line with no spaces, to save bytes, and in that state it is practically impossible to follow.
Formatting restores the indentation and line breaks that reveal its structure: what sits inside what, where each object begins, which elements each list holds. With a JSON of any size, the difference between seeing it formatted or not is the difference between understanding it in ten seconds and not understanding it at all.
The tool also validates the syntax. If the text is not correct JSON, it shows the specific error, which is usually exactly what you need: a trailing comma at the end of a list, an unclosed quote, or single quotes where the standard demands double ones.
Pasting the raw response and formatting it is the first step to understanding what a service returns.
When a configuration file will not load, validation points to the exact spot.
Many programs store settings in JSON. Formatting lets you review and edit it without breaking it.
The tool shows you the exact error message so you can pinpoint the problem (an extra comma, an unclosed quote, etc.).
This tool is built for readable formatting; for the opposite, any code editor can strip the extra line breaks.