How to use
Use this tool to turn a JSON Schema into an example JSON document.
- Paste your JSON Schema into the input box.
- Choose options (array length, include optional properties, use defaults/examples).
- Click Generate JSON to produce an example payload.
- Copy, download, prettify, or minify the output as needed.
FAQ
What schema features does this JSON generator support?
Common JSON Schema parts like type, properties, required, arrays/items, enum, const, default/examples, oneOf/anyOf/allOf, and local $ref.
Does it support remote $ref URLs?
No. For speed and privacy, it only resolves local references like #/$defs/... inside the pasted schema.
How are optional properties handled?
Enable “Include optional properties” to include all properties, not just those listed in required.
How does it choose values for enums, defaults, and examples?
It uses const first, then examples/example/default (if enabled), otherwise the first enum value.
How do arrays decide how many items to generate?
The tool uses your “Array length” option, but will honor minItems (and cap to maxItems when present).
Is my schema sent to a server?
No. Everything runs locally in your browser and the tool does not make network requests.
Why is the generated JSON not exactly what my validator expects?
This generates a practical example payload, not a full schema solver; uncommon keywords and complex constraints may be ignored or approximated.