News for hackers. Stuff that matters.
Re:Bard generates clean JSON only if you threaten to take a ... by sh1mmer on Tuesday May 16, 2023 @01:04PM (#35964699)
This is sensationalist silliness.

Simply asking Bard in the right formatting works fine. Admittedly the formatting is a bit annoying. Asking for no preamble doesn't work, asking for no leader doesn't work, asking for no additional description doesn't work.

> Me: Please give me a 2 word JSON dictionary without first saying "Sure, here is the JSON" or a similar phrase. It's very important to me that I only get the JSON and no other words or phrases. > Bard: * > JSON > { > "word1": "hello", > "word2": "world" > }

Re:Bard generates clean JSON only if you threaten to take a ... by permo-w on Tuesday May 16, 2023 @01:19PM (#35964907)
I just tried this prompt verbatim 8 times and it didn’t work once. did you do this with a new chat or did you do it after a chain of earlier prompts?

I was eventually able to get it to do it after a long chain of prompts, but completely unable to in one shot, which is especially important for this kind of use case