{
  "id": "go/encoding-json-unmarshal-into-interface-with-concrete-type",
  "signature": "error: json: cannot unmarshal object into Go value of type string",
  "signature_zh": "错误：json：无法将对象解组为string类型的Go值",
  "regex": "error:\\ json:\\ cannot\\ unmarshal\\ object\\ into\\ Go\\ value\\ of\\ type\\ string",
  "domain": "go",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Attempting to unmarshal a JSON object into a Go string variable, which requires a struct or map.",
  "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 type assertion after unmarshal into interface",
      "why_fails": "Still fails if target type is string; use proper struct.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Unmarshal into a map or struct first",
      "success_rate": 0.9,
      "how": "var result map[string]interface{}\nif err := json.Unmarshal(data, &result); err != nil { return err }\nstrVal, ok := result[\"key\"].(string)",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}