JSON generator
Describe the data you need and get it back as JSON that follows a schema.
Prompt API …
This browser cannot run this demo
Use Chrome on desktop and check chrome://on-device-internals. Setup guide ·
Status page ·
Frequently asked questions
What it does
The Prompt API can be forced to answer in the shape of a JSON Schema (structured output). The answer is data your code can use directly, not free text that needs parsing.
How to use it
- Describe the data you need (“Three fictional users with name, email and age”).
- Pick a schema preset, or edit the JSON Schema yourself. It must be valid JSON.
- Press Generate.
- The result appears as formatted JSON. Copy it with the Copy button.
Result