Validator Knowledge Base

JSON Lint: Check JSON for Syntax Errors & Validate RFC 8259

Lint your JSON to catch syntax errors, unexpected tokens, trailing commas, and malformed strings. Free JSONLint alternative with line-by-line error reporting.

What is JSON Linting?

JSON linting is the process of checking JSON data against the strict RFC 8259 specification to find syntax errors before they cause runtime crashes in your application. Unlike formatting, linting focuses entirely on correctness — not readability.

JSON Lint vs JSON Validate: What's the Difference?

In practice, the terms are used interchangeably for JSON. Both mean "check this JSON for syntax correctness." The word "lint" comes from the C programming language's original linter tool from the 1970s, which checked code for suspicious patterns.

Common Issues JSON Lint Catches

  • Single-quoted strings: 'hello' (must be "hello")
  • Unquoted keys: {name: "Alice"} (must be {"name": "Alice"})
  • Trailing commas: [1, 2, 3,]
  • JavaScript comments: // comment or /* block */
  • Leading zeros in numbers: 007 (invalid in JSON)
  • NaN or Infinity values: not valid JSON primitives
  • Unclosed brackets or braces

Why Use a Dedicated JSON Linter?

Many text editors and IDEs show JSON errors, but they often miss edge cases and rarely show the exact RFC 8259 rule being violated. A dedicated JSON linter provides more precise error messages with byte positions.

Try Our Free Client-Side Developer Tools

Zero latency, 100% data privacy, and Web Worker performance.

Launch Tool

Frequently Asked Questions

Is JSONLint the same as JSON validation?

Yes. "JSONLint", "JSON lint", and "JSON validate" all mean checking JSON syntax against the RFC 8259 specification. Our tool performs the same checks as JSONLint.

Does JSON support comments?

No. Standard JSON (RFC 8259) does not support comments of any kind. JSON5 and JSONC are non-standard extensions that add comment support but are not valid in most parsers.

Can JSON keys be unquoted like JavaScript object keys?

No. Unlike JavaScript object literals, all JSON keys must be double-quoted strings. {name: "Alice"} is valid JavaScript but invalid JSON.

What is the fastest way to lint JSON online?

Paste your JSON into our validator — it lints automatically on every keystroke with zero page reload or server round-trip.

Related JSON Topics & Reference Articles