Start learning →

Easiest way to force Claude to return strict JSON:

AAsk politely in the prompt
BUse temperature 0
CDefine a tool with a JSON schema
DStrip braces from the user input
Answer & Solution
Correct answer: C. Define a tool with a JSON schema
The tool-call API forces a schema-shaped response. Most reliable way to get parsable JSON every time.
Practise this question with Quill — Claude AI →

Keep practising Claudeai Structured

Browse all Claudeai Structured questions for Claude AI, or explore more Claudearchitect topics.

Start a Claudeai Structured lesson →
Related questions