JSON Validator & Lint Online
Validate your JSON syntax instantly. Get detailed error messages to fix issues quickly. Works entirely in your browser.
Input
Output
Common JSON Errors and How to Fix Them
1Trailing Commas
Wrong
{
"name": "John",
"age": 30,
}Correct
{
"name": "John",
"age": 30
}2Single Quotes
Wrong
{
'name': 'John'
}Correct
{
"name": "John"
}3Unquoted Keys
Wrong
{
name: "John"
}Correct
{
"name": "John"
}About JSON Validation
JSON validation is the process of checking whether a text string conforms to the JSON specification defined in RFC 8259. A valid JSON document must follow strict syntax rules, including proper use of double quotes for strings and keys, correct nesting of objects and arrays, and proper formatting of values.
Our JSON validator uses your browser's built-in JSON.parse() function, which implements the full JSON specification. When validation fails, you get a detailed error message indicating what went wrong and where, helping you quickly locate and fix the issue.
Whether you're debugging an API response, reviewing a configuration file, or checking data before importing it into a database, our JSON validator gives you instant feedback on your JSON's validity. And since everything runs in your browser, your data stays completely private.
JSON Validator FAQ
What is JSON validation?
JSON validation checks whether a piece of text conforms to the JSON specification (RFC 8259). A valid JSON document must have proper syntax: correct use of braces, brackets, commas, colons, quotes, and properly formatted values.
What are the most common JSON errors?
The most common JSON errors include: trailing commas after the last item in an array or object, using single quotes instead of double quotes, missing quotes around keys, unescaped special characters in strings, and missing commas between items.
What is JSON Lint?
JSON Lint is a term used for JSON validation tools that check syntax and report errors. The name comes from the concept of 'lint' tools in programming that analyze code for potential errors. Our JSON validator works like JSON Lint to help you find and fix issues.
Can I validate JSON with comments?
Standard JSON (per RFC 8259) does not support comments. If your JSON contains comments (// or /* */), it will be flagged as invalid. Some formats like JSON5 or JSONC support comments, but they are not standard JSON.
Is an empty object {} valid JSON?
Yes, an empty object {} and an empty array [] are both valid JSON. Any valid JSON value (string, number, boolean, null, object, or array) is considered valid JSON at the top level.