The solution that worked great for me - do not use JSON for GPT to agent communication. Use comma separated key=value, or something to that effect.
Then have another pure code layer to parse that into structured JSON.
I think it’s the JSON syntax (with curly braces) that does it in. So YAML or TOML might work just as well, but I haven’t tried that.