JSON Validator & Formatter

Paste your JSON below to validate, format, or minify it instantly.

About JSONLint.app

JSONLint.app is a fast, free validator and formatter for JSON, a lightweight data-interchange format. Copy and paste, directly type, or input a URL in the editor above and let JSONLint.app tidy and validate your messy JSON code.

What Is JSON?

JSON (JavaScript Object Notation) is a human-readable and compact format for representing complex data structures. It's used extensively in web APIs, configuration files, and data exchange between systems. JSON is language-independent, making it a universal data format understood by virtually all modern programming languages.

How to Validate JSON

Validating JSON ensures your data follows the correct syntax before it's processed by an application. Here's how to validate JSON using JSONLint.app:

  1. Paste your JSON into the editor above
  2. Click the Validate JSON button (or press Ctrl+Enter)
  3. JSONLint.app will highlight any errors with line numbers and descriptions
  4. Fix the errors and re-validate until your JSON is valid

Example of Valid JSON

Here is a simple example of valid JSON:

{
  "name": "John Doe",
  "age": 30,
  "email": "john@example.com",
  "isActive": true,
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "country": "US"
  },
  "hobbies": ["reading", "coding", "hiking"]
}

Common JSON Errors

  • Trailing commas — An extra comma after the last item: { "a": "b", }
  • Single quotes — JSON requires double quotes, not single: { 'key': 'value' } is invalid
  • Unquoted keys — Keys must be in double quotes: { key: "value" } is invalid
  • Missing commas — Forgetting a comma between items: { "a": 1 "b": 2 }
  • Comments — JSON does not support comments. Use JSONC format if you need them.
  • Wrong boolean/null casing — Must be lowercase: true, false, null (not True, FALSE, NULL)

Proper JSON Format Rules

  • Data is in name/value pairs
  • Data is separated by commas
  • Objects are wrapped in curly braces {}
  • Arrays are wrapped in square brackets []
  • Keys must be strings in double quotes
  • String values must use double quotes
  • Boolean values use true or false (lowercase)
  • Null values use null (lowercase)
  • Numbers should not have leading zeroes
  • No trailing commas allowed
  • File extension: .json — MIME type: application/json

Why Use JSONLint.app?

JSONLint.app helps you quickly find and fix errors in your JSON data. It highlights the exact line and character where the error occurs, saving you hours of manual debugging. All processing happens entirely in your browser — your data never leaves your machine.

Tips & Tricks