As opposed to emitting non-JSON tokens and having to throw away the answer?

Don't shoot the messenger

Or just run json.dumps on the correct answer in the wrong format.