{
  "id": "go/encoding-json-unmarshal-number-overflow",
  "signature": "error: json: cannot unmarshal number 99999999999999999999 into Go value of type int64",
  "signature_zh": "错误：json：无法将数字 99999999999999999999 解组为 int64 类型的 Go 值",
  "regex": "error:\\ json:\\ cannot\\ unmarshal\\ number\\ 99999999999999999999\\ into\\ Go\\ value\\ of\\ type\\ int64",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A JSON number exceeds the range of the target Go integer type, causing overflow.",
  "root_cause_type": "generic",
  "root_cause_zh": "JSON数字超出目标Go整数类型的范围，导致溢出。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using float64 to store large numbers",
      "why_fails": "May lose precision for very large integers; use big.Int or string.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use json.Number or big.Int for large numbers",
      "success_rate": 0.9,
      "how": "var num json.Number\nif err := json.Unmarshal(data, &num); err != nil { return err }\nintVal, _ := num.Int64()",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-07-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}