JSON Schema Validator

Validate your JSON data against a JSON Schema. Ensure your data structure meets your specifications and requirements.

JSON Data

JSON Schema

What is JSON Schema?

JSON Schema is a powerful tool for validating the structure of JSON data. It allows you to:

  • Describe your existing data format
  • Provide clear human- and machine-readable documentation
  • Validate data for automated testing and quality assurance
  • Ensure client-submitted data is properly formatted

Example Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "age": { "type": "number", "minimum": 0 },
    "email": { "type": "string", "format": "email" }
  },
  "required": ["name", "email"]
}

Common Schema Keywords

  • type - Data type (string, number, object, array, boolean, null)
  • properties - Object properties
  • required - Required properties
  • minimum/maximum - Number constraints
  • minLength/maxLength - String length
  • pattern - Regex pattern for strings
  • enum - Allowed values
  • items - Array item schema