Invalid JSON usually comes from a trailing comma, an unquoted key, or mismatched brackets. Paste your document into our JSON Validator and it will tell you exactly where the parser failed, not just that it failed.
Common mistakes
- Trailing commas after the last item in an object or array
- Using single quotes instead of double quotes
- Forgetting to quote object keys
- Unescaped control characters inside strings
Looking for a tool to try out what you just read? Browse the full tools catalog.