Process
Local · Zero upload

JSON Schema Validator

draft-07 / 2020-12 subset · Local · Zero upload

YAML Conversion

Ready

Raw input

                                
                            
Parsed output

                                
Fixed height; long code scrolls inside the panel

ABOUT

About JSON Schema Validator

Check whether a JSON document matches a JSON Schema: types, required properties, extra keys, arrays, enum and const. This is structural validation, not syntax checking.

Paste the instance on the left and the schema on the right. Errors list a JSON Pointer path. $ref and format are not evaluated in this first version.

DEEP DIVE

JSON Schema Validator

API contracts and agent tool parameters are usually JSON Schema. Formatter only tells you the text is valid JSON. This page tells you whether the object fits the contract.

Use Code Generator when you need a schema from a sample. Come back here to test instances against that schema. Blog notes on why agents need Schema stay on the blog, not in this title.

FEATURES

JSON Schema Validator

01

Instance + Schema

Two panes: JSON on the left, Schema on the right.

02

Path-listed errors

required, type, additionalProperties, items, enum, const, min/max.

03

Draft subset

draft-07 / 2020-12 keywords we implement; no $ref hop yet.

04

Local only

Instance and schema never leave the browser.

05

Not a syntax checker

Broken JSON still belongs on Formatter / Auto Fix.

06

Pairs with Codegen

Generate a schema there, validate instances here.

URL

Load from URL

Load a whole public Schema into the right pane. Remote $ref is not auto-expanded.

HOW TO USE

How to use

  1. 1

    Paste instance (left) and Schema (right), or Load from URL into the Schema pane (CORS; no remote $ref).

  2. 2

    Click Sample for the fictional A-1042 object.

  3. 3

    Read valid / errorCount / errors[].path.

  4. 4

    Fix the instance or the schema, then run again.

FAQ

FAQ

Is this a JSON syntax validator?

No. If parse fails, use Formatter. This page checks structure against a schema.

Which drafts are covered?

A shared subset of draft-07 and 2020-12: type, properties, required, additionalProperties, items, enum, const, min/max lengths and numbers.

Do you follow $ref?

This version does not follow remote $ref. Use Load from URL to fill a whole public Schema into the right pane, or inline nested schemas.

Is format (email, uri) checked?

No. format is annotation-only here.

Can I load JSON from a URL?

Yes. Use Load from URL in the toolbar. Your browser fetches public HTTPS directly. Most APIs without CORS will fail—paste the response instead. Nothing is sent to JSONSort.

Does loading from a URL count as an upload?

Not an upload to JSONSort. Only your browser requests that address; the remote host sees your IP.

Is data uploaded?

No. Validation runs in your browser.

Where do I generate a schema?

Code Generator still has a Schema button; its title stays TypeScript/Java/Go. A dedicated generator page is a later phase.

Copied to clipboard