2 ms·
unfortunately JSON is doomed to fail in "the AI era" LLMs are surprisingly bad at generating JSON.
by est 4mo ago
unfortunately JSON is doomed to fail in "the AI era"
LLMs are surprisingly bad at generating JSON.
- kamikazeturtles 4mo agoWhy is that?
- afro88 4mo agoAre they in 2026? I haven't had an issue with json and LLMs in a long while
- cyanregiment 4mo 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 4mo 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 4mo 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 4mo 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