Skip to main content
Sometimes you want the generated output to be valid JSON with predefined fields. You can use Grammar to manually specify a JSON schema for the response you want to receive.
1

Create a new project

2

Install dependencies

3

Paste into main.py

4

Run the snippet