Quiz 8 Question 12 of 20

A real-time financial dashboard must stream token-by-token responses from Claude and display partial JSON as the response accumulates. During testing, the SSE stream intermittently delivers malformed partial JSON that crashes the parser before the closing brace arrives. What is the correct architectural pattern to handle this?

Select an answer to reveal the explanation.

Motivation