Interactive Cheatsheets

Master JSON parsing, validation, and design patterns.

JSON Schema Basics

JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It's like a contract for your data.

KeywordFunction
typeConstrains the data type (string, number, object...)
requiredList of property names that must exist.
propertiesDefinitions for child fields in an object.
enumLimits value to a specific set of options.
Schema (Hidden/Mocked)Rules: name(req, str), age(num), email(req, format)
Valid