JSON errors are usually small: a missing comma, an extra bracket, or a quoted number where a boolean should be.
Format JSON (step by step)
- Open JSON Formatter.
- Paste your JSON.
- Format to pretty-print, or minify when you need compact output.
- If there is an error, read the message and fix the line near the location.
Common JSON problems
- Trailing commas (not allowed in strict JSON)
- Single quotes instead of double quotes
- Comments inside JSON (also not allowed)
- Unescaped characters inside strings
Tip for debugging
If you get an error location, start one character before and after that spot. The real issue is often nearby.
Related tools
- Base64 Encoder: encode JSON for transport in a safe string