DEVtoy
Sprache · Deutsch

JSON-Schema-Validator

JSON-Dokumente anhand eines JSON Schema prüfen. Validierungsfehler untersuchen und optional Formate prüfen.

So funktioniert’s

  1. Füge deine Eingabe ein oder lade das folgende Beispiel.
  2. Passe die Optionen an und wähle „JSON prüfen“.
  3. Prüfe das Ergebnis und kopiere es oder lade es herunter.

Keine Uploads. Kein Konto. Die Verarbeitung bleibt in deinem Browser.

Beispieleingabe
{
  "id": "0192f4d2-6a2b-7c3d-8e4f-5a6b7c8d9e0f",
  "email": "ada@example",
  "age": 12,
  "roles": ["admin", "owner"],
  "nickname": "ada"
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": ["id", "email", "roles"],
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "email": { "type": "string", "format": "email" },
    "age": { "type": "integer", "minimum": 13 },
    "roles": { "type": "array", "items": { "enum": ["admin", "editor", "viewer"] }, "uniqueItems": true }
  },
  "additionalProperties": false
}

Ähnliche Tools