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.

مستعد
0 بايت
0 بايت

نتيجة التحقق من الصحة

الصق بيانات JSON ومخطط JSON، ثم اختر التحقق من الصحة.

المسودات المدعومة

اختر المسودة 7، 2019-09 أو 2020-12 قبل التحقق من الصحة. تتحكم المسودة المحددة في كيفية تجميع المخطط.

مسارات خطأ مفيدة

تتضمن أخطاء التحقق من الصحة مسارات المثيلات، ومسارات المخطط، والرسائل المختصرة، بحيث يسهل تحديد مشكلات حمولة واجهة برمجة التطبيقات (API).

سير العمل المحلي

انسخ تقريرًا أو قم بتنزيله كملف JSON. يستخدم Analytics فقط الحجم والمسودة وعدد المجموعات، ولا يتم لصق المحتوى مطلقًا.

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

بيانات جيسون

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

مخطط جيسون

{
  "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.