JSON Extractor Prompt
Extract structured JSON from any unstructured text.
/ quick answer
Use for entity extraction, invoice parsing, form intake, etc. Extract structured JSON from any unstructured text.
Extract the fields from the text into JSON matching this schema:
Schema:
{{schema}}
Text:
{{text}}
Rules:
- Return ONLY valid JSON.
- If a field is missing, use null.
- Never invent values.{ "vendor": "Notion", "amount": 96.00, "currency": "USD", "date": "2026-07-01" }What does the JSON Extractor Prompt prompt do?
Use for entity extraction, invoice parsing, form intake, etc.
Which AI models work with this prompt?
It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.
What output should I expect?
{ "vendor": "Notion", "amount": 96.00, "currency": "USD", "date": "2026-07-01" }.
/ continue exploring
Related concepts
The vocabulary this page depends on.
- →Prompt Chaining
Pipelining LLM calls where each step's output feeds the next.
- →Few-Shot Prompting
Showing the model 2–5 examples of the task inside the prompt so it mirrors the pattern.
- →System Prompt
A high-priority instruction that sets the model's role, tone and constraints for the whole conversation.
- →JSON Mode
A model setting that guarantees valid JSON output.
Related prompts
Reusable prompts for this job.
- →Prompt Improver Prompt
Iterate a weak prompt into a strong one using best practices.
- →Brand Voice Extractor Prompt
Distill 5-10 samples into a reusable brand voice profile.
- →Strategic Analyst Prompt
Turn a business situation into a McKinsey-style strategic memo.
- →Buyer Persona Builder Prompt
Generate a detailed persona from a product description and target market.