JSON
JSON Schema Validator
Überprüfung von JSON-Daten gegen ein JSON Schema (Stil draft-07) — mit genauem Pfad und Erklärung für jeden Verstoß.
JSON Schema describes the expected structure of a JSON document — which fields are required, what type they are, and what constraints apply to their values. This tool checks actual data against a schema and shows the exact path to every violation.
How to use it
- Paste a JSON Schema into one field and the data to validate into the other.
- The result lists each violation separately: the exact path to the problem field and a plain-language explanation of why it doesn't match the schema.
- Valid data is immediately flagged as fully compliant with the schema.
Common uses
- Checking a third-party API response against its documented schema before integrating with it.
- Debugging your own JSON Schema — figuring out why seemingly valid data gets rejected.
- Validating a configuration file against a schema before deploying.
Things to keep in mind
JSON Schema has several versions (draft-07, 2019-09, 2020-12) with small syntax differences — check which version your production validator actually expects.
required only checks that a field is present, not its value — an empty string or null still counts as "present" if the type allows it.
Artikel zu diesem Tool: JSON Schema: die Struktur von JSON beschreiben und prüfen
Häufig gestellte Fragen
Was bedeutet ein Validierungsfehler an einem bestimmten Pfad?
Er bedeutet, dass die Daten an dieser Stelle eine Bedingung des Schemas verletzen, etwa einen falschen Typ, eine fehlende Pflichteigenschaft, ein nicht passendes Muster oder einen Wert außerhalb des erlaubten Bereichs.
Welche JSON-Schema-Version wird unterstützt?
Das Tool folgt dem draft-07-Stil, einer der am häufigsten verwendeten JSON-Schema-Versionen, die die gängigsten Schlüsselwörter wie required, type und pattern abdeckt.
Werden Schema oder Daten zur Prüfung an einen Server gesendet?
Nein, die gesamte Validierung erfolgt lokal im Browser über JavaScript, weder Schema noch Daten werden irgendwohin hochgeladen.
Was bewirkt additionalProperties: false?
Standardmäßig darf ein Objekt beliebige Felder über die in properties beschriebenen hinaus enthalten. additionalProperties: false verbietet zusätzliche Felder — nützlich, um einen Tippfehler im Schlüsselnamen oder ein versehentlich stehen gelassenes Debug-Feld abzufangen.
Lässt sich ein Feld beschreiben, das mehrere Typen zulässt?
Ja, über ein Array in type, etwa "type": ["string", "null"], wenn das Feld ein String oder null sein darf. Für komplexere Fälle verwendet man die Schlüsselwörter oneOf, anyOf oder allOf.