Structured Output (JSON & Tables) — ChatGPT
When you need output your app or spreadsheet can actually use, explicitly request a schema.
The prompt
Extract the following fields from this job listing as JSON only, no extra text: { "title": string, "company": string, "location": string, "salary_range": string or null, "remote": boolean }.
[paste job listing]What to replace
Swap these placeholders for your own details before running the prompt:
[paste job listing]your own value
Pro tip: Always show the exact JSON schema in the prompt itself — models follow explicit key names far more reliably than vague descriptions.
How to use this prompt
- Copy the prompt using the button above.
- Replace [paste job listing] with your own details — the more specific you are, the better the output.
- Paste it into ChatGPT and run it.
- If the answer feels generic, add constraints: audience, length, tone, and what to avoid. That single change fixes most weak output.
Learn the technique
Structured Output (JSON & Tables)
Module 2 — Core Techniques · Prompt Engineering Fundamentals
Related prompts
The 5-Part Prompt Framework — ChatGPT
Every strong prompt combines five parts: Role (who the AI should act as), Context (background info it needs), Task (the specific ask), Format (how you want the output structured), and Constraints (length, tone, things to avoid).
ClaudeThe 5-Part Prompt Framework — Claude
Every strong prompt combines five parts: Role (who the AI should act as), Context (background info it needs), Task (the specific ask), Format (how you want the output structured), and Constraints (length, tone, things to avoid).
ChatGPTZero-Shot vs Few-Shot Prompting — ChatGPT
Zero-shot means asking directly with no examples.
GrokZero-Shot vs Few-Shot Prompting — Grok
Zero-shot means asking directly with no examples.
ChatGPTChain-of-Thought Prompting — ChatGPT
Asking a model to "think step by step" before answering measurably improves accuracy on reasoning, math, and multi-step logic tasks because it forces the model to externalize intermediate steps instead of jumping to a guess..
ClaudeChain-of-Thought Prompting — Claude
Asking a model to "think step by step" before answering measurably improves accuracy on reasoning, math, and multi-step logic tasks because it forces the model to externalize intermediate steps instead of jumping to a guess..
Related across the site
Structured output
Structured output means constraining a model to return data in a machine-readable shape such as JSON, usually by specifying the exact schema in the prompt or using a provider feature that enforces it.
10 Prompt Mistakes That Make AI Output Generic
The specific, fixable reasons AI output comes back bland — and what to write instead. Each mistake includes a before-and-after example you can apply immediately.
JSON Schema
JSON Schema is a standard vocabulary for describing the shape of JSON data — its keys, types and required fields. AI providers use it to constrain model output to a guaranteed structure.
Structured Output (JSON & Tables) — Hugging Face (open-source)
When you need output your app or spreadsheet can actually use, explicitly request a schema.
Fine-tuning
Fine-tuning continues training a pre-trained model on your own examples to specialise its behaviour. It is the right tool for teaching consistent style, format or classification behaviour — not for adding knowledge.
How to Become a Prompt Engineer in 2026 (Honestly)
Whether prompt engineering is a real career, what the work actually involves, the skills that matter, and a realistic path in — including why the pure-prompting job title is fading.