🔥 3-day streak
Claude Certified Associate (Foundations)108 / 150
Question 108 of 150
You are building a product-review analysis feature that must return each result as JSON with fields 'sentiment', 'topics', and 'summary' so a downstream service can parse it reliably. In your testing, Claude sometimes wraps the JSON in conversational text like 'Sure! Here is the analysis:' which breaks the parser. Using the Messages API, what is the most effective way to get consistently parseable structured output?
Reviewed for accuracy · Report an issueNext question