Data & analysis Vendor library

Few-shot JSON order extraction

Extracting structured JSON from free-text orders using an example and prefix

For
Google Gemini
Source
Google Gemini prompt engineering guide
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
Order: I want two burgers, a drink, and fries.
Output:

When to use this prompt

  • Extracting structured JSON from free-text orders using an example and prefix
  • Task type: Data & analysis. 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: fill the variables, run it in Google Gemini, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTGoogle Gemini25 words · 4 linessource: vendor libraryYOU GETThe resultExtracting structured JSON from f…check the result against the tipscopy, 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

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

Pricing changed, re-check pending

Listed Not yet reviewed

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

Free · paid from $4.99/mo US · change under review

More prompts to try