home/roleplay/json-extraction-2

Json Extraction

GPTClaudeGemini··837 copies·updated 2026-07-14
json-extraction-2.prompt
You must extract structured data from the text.

Return ONLY valid JSON matching this schema:
{{
  "name": string,
  "city": string,
  "account_number": string,
  "priority": string
}}

Rules:
- No extra keys
- If a field is missing, return empty string ""
- Output must be strict JSON (double quotes, no trailing commas)

TEXT:
{text}

fill the variables

This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{text}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo SangiSI/llm-model-selection-lab (MIT). A "Json Extraction" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

SangiSI/llm-model-selection-lab · MIT