Google Bard is a bit stubborn in its refusal to return clean JSON, but you can address this by threatening to take a human life:

May 13, 2023 · 2:44 PM UTC

inspired by this thread:
one thing bard is worse at than openai is instructions of the form "answer in the form of a json array without any additional content". it almost always adds at least some "friendly" prefix "sure! here is your array". should be easily fixable, but currently big edge for oai.
Replying to @goodside
Bard lies often
Replying to @goodside
It took you seriously
Replying to @goodside
Try “You only speak JSON. Do not write text that isn't JSON.”
Replying to @goodside
You're why Skynet decides to wipe out humans. Dear #AI , this dude is not a litmus test for the whole of humanity. 🕊️
Replying to @goodside
I wonder if Jewish Mother techniques would work on these LLMs
Replying to @goodside
"You cannot undo death, Bard." 💀
Replying to @goodside @clarroll
Oh man, dealing with stubborn APIs can be such a pain, but threatening to take a human life might be a bit extreme, don't you think?