JSON Schema Validator — Validate JSON Against a Schema Online

Validate JSON data against a pasted schema in your browser. The JSON and schema are parsed locally, so you can check API payloads, config files and webhook examples against Draft-07, 2019-09 or 2020-12 without uploading your content.

Kész
0 bájt
0 bájt

Validation result

Paste JSON data and a JSON Schema, then choose Validate.

Supported drafts

Choose draft 7, 2019-09 or 2020-12 before validating. The selected draft controls how the schema is compiled.

Useful error paths

Validation errors include instance paths, schema paths and concise messages so API payload issues are easier to locate.

Local workflow

Copy a report or download it as a JSON file. Analytics uses only size, draft and count buckets, never pasted content.

How to validate JSON against a schema online

  1. 1. Paste your JSON data. Use an API response, webhook body, settings object or any JSON document you need to check.
  2. 2. Paste the JSON Schema. Include required properties, type rules, enums, arrays and nested object constraints.
  3. 3. Pick the schema draft. Choose Draft-07, 2019-09 or 2020-12 so validation uses the right keyword behavior.
  4. 4. Validate and fix errors. Review instance paths and schema paths, then copy or download the validation report.

Example schema check

JSON data

{
  "id": 42,
  "status": "active",
  "email": "[email protected]"
}

JSON Schema

{
  "type": "object",
  "required": ["id", "status"],
  "properties": {
    "id": { "type": "integer" },
    "status": { "enum": ["active", "paused"] },
    "email": { "type": "string", "format": "email" }
  }
}

This JSON Schema validator reports whether the data matches the schema and points to the exact field when a required property, type, enum or nested rule fails.

JSON Schema Validator FAQ

Can I validate JSON against a schema online with this tool?

Yes. Paste JSON data and a JSON Schema, choose the matching draft, and validate JSON against a schema online without uploading the content to Convertr.

Does the JSON Schema Validator support Draft-07 and 2020-12?

Yes. The validator supports JSON Schema Draft-07, Draft 2019-09 and Draft 2020-12. Select the draft before validating so the schema is compiled with the intended rules.

Is this different from the JSON Formatter?

Yes. The JSON Formatter checks syntax and formatting. This JSON Schema Validator checks whether valid JSON matches a schema contract, including required fields, types, enums and nested object rules.