Pretty-print JSON
APIs fail on a trailing comma or a smart quote from a docs site. Pretty-print the payload locally, then minify if you need a single line.
Validate first
Paste into the JSON Formatter. If it throws, the line number is the start of the hunt — often a missing comma above. Do not “fix” production by guessing in a chat window.
Minify vs pretty
Pretty is for humans. Minified is for logs and some size-sensitive posts. Keep secrets out of screenshots. Wordnio formats in the browser.
Steps
- Paste the payload.
- Pretty-print and fix the first error.
- Copy the valid JSON back to your editor.
Frequently asked questions
Open the JSON Formatter
The guide is the rule. The tool does the count. No account.
More short guides: all Wordnio guides.