Comment by simonw
If you're building a UI that renders output from a streaming LLM you might get back something which looks like this:
{"role": "assistant", "text": "Here's that Python code you aske
Incomplete parsing with incomplete strings is still useful in order to render that to your end user while it's still streaming in.
In this example the value is incomplete, not the key.