A JSON Schema is a JSON document (an object) which defines constraints on what other JSON documents (the instances) should obey; it can also be used to interpret instances so as to provide links to external resources (hyper schema).
JSON (JavaScript Object Notation) Schema defines the media type application/schema+json
, a JSON based format for defining the structure of JSON data.
JSON Schema provides a contract for what JSON data is required for a given application and how to interact with it. JSON Schema is intended to define validation, documentation, hyperlink navigation, and interaction control of JSON data.
References:
- JSON Schema on GitHub;
- Web site (available implementations, resources, examples etc)
For the latest Internet Draft documents, see the specification section of the website.