JSON Tools
Generate & Schema
Whether you need to document an API response, validate incoming data, or generate test fixtures, these tools let you work with JSON Schema and mock data generation entirely in your browser.
All Generate & Schema Tools
Frequently Asked Questions
What is JSON Schema?
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes the expected structure, data types, required fields, and constraints for a JSON document, and is widely used for API documentation and validation.
How accurate is the JSON Schema Generator?
The generator infers a schema from your sample data. It correctly identifies types and required fields present in the sample. For production use, review the output and add enum constraints, minLength, pattern, or format keywords that cannot be inferred from a single sample.
What template syntax does the JSON Generator use?
The JSON Generator uses a simple template where you define your JSON structure and use helpers like {{internet.email}}, {{name.fullName}}, {{datatype.number}}, and {{date.past}} to generate realistic values. Templates can include arrays with a repeat count.
Can I validate JSON against my own schema?
Yes. The JSON Schema Validator accepts any valid JSON Schema (draft-07 and later) and validates your JSON document against it. Errors are reported with the exact path and rule that failed.