3 ms·
unfortunately JSON is doomed to fail in "the AI era" LLMs are surprisingly bad at generating JSON.
by est 2mo ago
unfortunately JSON is doomed to fail in "the AI era"
LLMs are surprisingly bad at generating JSON.
- kamikazeturtles 2mo agoWhy is that?
- afro88 2mo agoAre they in 2026? I haven't had an issue with json and LLMs in a long while
- cyanregiment 2mo agoJSON, CSS, JS config files… for me it tends to omit fields and produce unwanted or duplicate ones. But way less so in TS. Because the types/interfaces are there to guide it further. So everyone’s adding types everywhere: “Agent friendly” What would a CSS type system look like !
- lenkite 2mo agoI would love a CSS type system for humans. The language never stays in my brain for more than 2 weeks and then I have to re-learn it from scratch.
- cyanregiment 2mo agoSame, and I guess it already is (pretty strongly) typed but yeah > for humans And dare I say “agents” - it’d be nice to have very nuanced types
- steve_adams_86 2mo agoYou 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