{
  "id": "go/json-cannot-unmarshal-null-into-string",
  "signature": "error: json: cannot unmarshal null into Go value of type string",
  "signature_zh": "错误：json：无法将 null 反序列化为字符串类型的 Go 值",
  "regex": "error:\\ json:\\ cannot\\ unmarshal\\ null\\ into\\ Go\\ value\\ of\\ type\\ string",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The JSON data contains a null value for a field that is expected to be a string, but the struct field is not a pointer or does not handle null.",
  "root_cause_type": "generic",
  "root_cause_zh": "JSON 数据中的字段为 null，但对应的结构体字段是字符串类型，且未使用指针或处理 null 的方式。",
  "versions": [
    {
      "version": "1.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This loses type safety and may cause runtime type assertions to fail.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This is inefficient and may alter the meaning of the data.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use a pointer to string (*string) for nullable fields.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Implement a custom UnmarshalJSON method to handle null.",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-25",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}