Vai al contenuto principale
CuteJSON
↑↓ Naviga Enter Seleziona Esc Chiudi

JSON Schema Validator

Check a JSON document against a JSON Schema and see every mismatch, each with the keyword that rejected it and the path to the value.

Torna a tutti gli strumenti

Scorciatoie da tastiera

Funzionano dove l'azione corrispondente esiste in questa pagina.

Apri la tavolozza comandi
Ctrl/Cmd + K
Esegui l'azione principale
Ctrl/Cmd + Enter
Formatta
Ctrl/Cmd + Shift + F
Minifica
Ctrl/Cmd + Shift + M
Copia output
Ctrl/Cmd + Shift + C
Apri file
Ctrl/Cmd + Shift + O
Scarica output
Ctrl/Cmd + S
Chiudi questa finestra
Esc
Apri questa finestra
F1 / ?

Dati locali

Tutto qui sotto e memorizzato solo in questo browser.

Bozze non salvate
Strumenti con opzioni ricordate

File aperti di recente

    Nessun file aperto ancora.

    Condividi via link

    Il contenuto e impacchettato nella parte dopo il #.

    Condivide la prima input in questa pagina.

    Niente da condividere ancora.

    Schema

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Document

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Funziona interamente nel tuo browser.

    Su questo strumento

    This validator covers the subset the schema generator on this site writes, so a schema produced here is a schema this page can apply: type, enum and const, the properties, patternProperties, additionalProperties, required, propertyNames, dependentRequired and dependentSchemas keywords, length, pattern and format on strings, bounds and multiples on numbers, items and uniqueItems on arrays, the allOf, anyOf, oneOf and not combinators, if-then-else, and local references through $defs or definitions. Keywords it does not implement are treated as annotations and ignored, which is what JSON Schema permits a validator to do. A reference that names nothing in the schema, or one that points outside it, stops the whole check and says so, because reporting a result for a schema that was never fully applied would be a lie. Every other failure is reported once, with the keyword that rejected it and a JSON pointer to the value, so a problem is a path you can walk to rather than a sentence you have to decode.

    Come usare

    1. Paste a schema into the left pane. Loading the sample fills both panes, so you can change the document and see what the schema rejects.
    2. Paste the document to check into the right pane.
    3. Press Validate. Each problem is listed with the keyword that rejected it and the path to the value.