Coding Vendor library

Partial input completion: order JSON

Compact structured output via a few-shot example and response prefix

For
Google Gemini
Source
Google AI for Developers prompt gallery
Checked
Oct 2, 2026

The prompt

Copied verbatim from the vendor library
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:
How to use this prompt: fill the variables, run it in Google Gemini, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTGoogle Gemini28 words · 11 linessource: vendor libraryYOU GETThe resultCompact structured output via a f…example output on this pagecopy, paste, run in Google Geminifill → run → check · prompts are copied word for word from their source
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

Example output shown by the vendor

```
{
  "hamburger": 2,
  "drink": 1,
  "fries": 1
}
```

Where to run it

Google Gemini

Web · Desktop · Mobile

No user reviews yet

Google's multimodal AI assistant, available free with higher limits through Google AI subscriptions.

Free stops at: Varying access to 3.1 Pro, Standard compute-based usage limits; refresh every 5 hours until weekly limit

Listed Not yet reviewed

Verified gemini.google.com (opens Google Gemini website in a new tab)

Free · paid from $4.99/mo US · checked Sep 30

More coding prompts

More prompts to try