{
  "id": "go/grpc-invalid-argument-malformed-json",
  "signature": "rpc error: code = InvalidArgument desc = invalid character '}' looking for beginning of object key string",
  "signature_zh": "rpc 错误：代码 = InvalidArgument 描述 = 无效字符 '}' 寻找对象键字符串的开头",
  "regex": "rpc\\ error:\\ code\\ =\\ InvalidArgument\\ desc\\ =\\ invalid\\ character\\ '\\}'\\ looking\\ for\\ beginning\\ of\\ object\\ key\\ string",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The request payload is not valid JSON when using a JSON transcoding gateway or custom unmarshal.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 JSON 转码网关或自定义反序列化时，请求负载不是有效的 JSON。",
  "versions": [
    {
      "version": "1.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Printing doesn't fix syntax errors; need proper validation.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Over-escaping can break valid JSON.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "if !json.Valid(payload) { return errors.New(\"invalid JSON\") }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "import \"google.golang.org/protobuf/encoding/protojson\"\n// Use protojson.Unmarshal with DiscardUnknown option.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-28",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}