Extract structured data as JSON
A strict extraction prompt that returns valid JSON only, with nulls for missing fields instead of invented values.
Extract the fields listed below from the text and return JSON only.
Fields:
{{fields}}
Rules:
- Return a single JSON object, no markdown fences, no commentary before or after.
- If a field is not present in the text, set it to null. Never infer it.
- Keep the original wording for text fields. Do not normalise, translate or tidy.
- If the text contains several records, return an array of objects instead.
--- text ---
{{text}}Fill these in
Type your values and Copy gives you the finished prompt, not the template.
Nothing filled in yet - Copy will give you the template with placeholders.
Notes from the author
Run it at temperature 0. Keep the no-fences rule even when the model has a JSON mode, since it lets the same prompt move between models. Validate the output against a schema on your side. A prompt guarantees nothing.
For information only, not professional advice. You use it at your own risk and we are not liable for any loss or damage. See the disclaimer.
Tagged