{
  "id": "go/json-unknown-field",
  "signature": "error: json: unknown field \"age\"",
  "signature_zh": "错误：JSON 未知字段 \"age\"",
  "regex": "error:\\ json:\\ unknown\\ field\\ \"age\"",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "JSON 数据中包含结构体中不存在的字段，且使用了 DisallowUnknownFields 选项。",
  "root_cause_type": "generic",
  "root_cause_zh": "JSON 数据中包含结构体中不存在的字段，且使用了 DisallowUnknownFields 选项。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "如果该字段是必需的，会导致数据不完整。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "如果数据来自外部，修改不现实。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "type User struct { Name string `json:\"name\"` Age int `json:\"age\"` }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "decoder := json.NewDecoder(strings.NewReader(data))\ndecoder.DisallowUnknownFields() // 移除这行",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}