JSON Lint – Online JSON Linter
JSON linting means checking your JSON for syntax errors against the RFC 8259 standard. Paste your JSON below for an instant lint check — no setup, no server calls, completely private.
Lint Your JSON Now
Free online JSON linter — real-time syntax checking with precise error messages.
Open JSON LinterWhat Is JSON Linting?
A JSON linter reads your JSON text and checks every character against the RFC 8259 specification — the official JSON standard. If anything violates the spec, the linter reports the exact line and character position of the error.
The terms JSON lint, JSON linter, and JSON validator are used interchangeably. They all mean the same thing: syntax validation against the JSON standard.
Linting happens automatically when you call JSON.parse() in JavaScript or json.loads() in Python. An online JSON linter like this one shows the error before you try to parse — saving you a runtime exception in production.
What Does a JSON Linter Check?
A strict RFC 8259 JSON linter verifies all of the following:
6 Most Common JSON Lint Errors
These six errors account for over 90% of all invalid JSON. Each example shows the broken JSON and the corrected version:
{"name": "Alice", "age": 30,}{"name": "Alice", "age": 30}{'name': 'Alice'}{"name": "Alice"}{name: "Alice", age: 30}{"name": "Alice", "age": 30}{"key": "value" // this is a comment
}{"key": "value"
}{"score": undefined}{"score": null}{"a": 1
"b": 2}{"a": 1,
"b": 2}JSON Lint vs JSON Schema Validation
JSON linting and JSON Schema validation are two different levels of checking:
Frequently Asked Questions
What is JSON linting?+
JSON linting is the process of checking a JSON string for syntax errors against the official JSON specification (RFC 8259). A JSON linter reads your JSON and reports any violations — such as trailing commas, single quotes, unquoted keys, or comments — so you can fix them before parsing.
What is the difference between a JSON linter and a JSON validator?+
In practice, JSON linting and JSON validation are the same thing. Both check that JSON conforms to the RFC 8259 standard. The term 'lint' comes from code linting in programming, where a linter checks for errors and style issues. For JSON, linting specifically means syntax validation — checking that the structure is valid.
Why does JSONLint say my JSON is invalid?+
JSONLint reports invalid JSON when your JSON violates the RFC 8259 specification. The most common causes are: single quotes instead of double quotes, trailing commas after the last item in an object or array, unquoted property keys, JavaScript comments (//, /* */), and undefined or NaN values. Check the error message for the exact position of the problem.
Can I use JSON lint to check JSON files?+
Yes. Open the JSON file in any text editor, copy the contents, and paste them into an online JSON linter like json-validator.net. The linter will instantly tell you if the file contains valid JSON or point to the exact line of the error.
Is JSON5 valid JSON?+
No. JSON5 is a superset of JSON that allows single quotes, trailing commas, and comments, but it is NOT valid JSON per the RFC 8259 standard. A JSON linter will reject JSON5 syntax. If you need to use JSON5, you must use a JSON5 parser specifically.
Ready to Lint Your JSON?
Free, instant, private. No sign-up. No ads. Results in milliseconds.
Open JSON Linter