logoalt Hacker News

esttoday at 5:57 AM3 repliesview on HN

unfortunately JSON is doomed to fail in "the AI era"

LLMs are surprisingly bad at generating JSON.


Replies

steve_adams_86today at 6:26 AM

You can use skills or harnesses to have them validate their json (using plain old JSON validation or schemas) and they seem to have a very high success rate with that gate in place. It's slightly more tokens, but it's reliable

afro88today at 6:00 AM

Are they in 2026? I haven't had an issue with json and LLMs in a long while

kamikazeturtlestoday at 5:59 AM

Why is that?