Unstructured Text to JSON Table

Anthropic prompt library

Submit a prompt

Overview

Convert prose into a JSON table of entities and attributes for structured data use.

Use cases

Prompt
Copied 0
Your task is to take the unstructured text provided and convert it into a well-organized table format using JSON. Identify the main entities, attributes, or categories mentioned in the text and use them as keys in the JSON object. Then extract the relevant information and populate the corresponding values. Ensure the data is accurately represented and properly formatted. The resulting JSON table should provide a clear, structured overview of the information in the original text.

Return ONLY valid JSON (array of row objects preferred).

TEXT:
<<<paste unstructured text>>>

Can AI?

Alternatives

  • Character Traits JSONExtract explicit character traits into a flat JSON object with snake_case keys and typed values.Document intelligence
  • Email Address ExtractionCopy email addresses from text exactly, returning one address per line or N/A when none appear.Document intelligence