Valid fields are cheeseburger, hamburger, fries, and drink.
Order: Give me a cheeseburger and fries
Output:
```
{
"cheeseburger": 1,
"fries": 1
}
```
Order: I want two burgers, a drink, and fries.
Output:
When to use this prompt
Compact structured output via a few-shot example and response prefix
Task type: Coding. Browse other prompts for the same task below.
Written for Google Gemini; other chat assistants usually accept it unchanged.
No variables to replace: paste it as is.
How to use this prompt: what to fill in, where to run it, what comes back
Usage notes from the vendor
For complex JSON schemas the page recommends the structured output feature instead