Why would it not like json? These models are supposed to be reasoning, that would imply it could reason that there's an error and fix it or interpret around it like a reasoning human could.
deferent models handle JSON slightly differently, Gemini handles it better other models as does OpenAI GPT4/o1/o3 but they cost a lot more so I don't use them for AI gameplay analysis