LLMs are bad at returning code in JSON

by pcwelderon 7/27/2025, 9:44 AMwith 1 comments

by pcwelderon 7/27/2025, 9:44 AM

PSA: don't generate code using tools (and MCPs) if you're using Gemini or Openai; both ask LLMs to generate JSON directly for function calling. Claude uses XML, so it escapes the issue.