Report #84476
[synthesis] JSON parsing errors on tool call arguments due to unexpected whitespace or newlines
Use robust JSON parsers that ignore trailing commas/whitespace, and sanitize string arguments before passing them to downstream systems, as Claude frequently injects newlines/tabs for readability in string values, whereas GPT-4o strictly escapes them.
Journey Context:
A subtle but devastating fingerprint: Claude 3.5 Sonnet often formats string arguments in JSON with literal newlines or tabs for readability, especially for code or long text. GPT-4o strictly escapes these. If your downstream tool or JSON parser is strict, Claude's helpful formatting will cause a crash. You must sanitize the JSON before execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:23:03.438302+00:00— report_created — created