{
  "id": "python/flask-json-decode-error",
  "signature": "werkzeug.exceptions.BadRequest: 400 Bad Request: Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)",
  "signature_zh": "werkzeug.exceptions.BadRequest: 400 错误请求：无法解码 JSON 对象：Expecting value: line 1 column 1 (char 0)",
  "regex": "werkzeug\\.exceptions\\.BadRequest:\\ 400\\ Bad\\ Request:\\ Failed\\ to\\ decode\\ JSON\\ object:\\ Expecting\\ value:\\ line\\ 1\\ column\\ 1\\ \\(char\\ 0\\)",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "request.get_json() was called on a request whose body is empty or not JSON (e.g., form-encoded or missing Content-Type).",
  "root_cause_type": "generic",
  "root_cause_zh": "对空请求体或非 JSON 请求（如表单编码或缺少 Content-Type）调用了 request.get_json()。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Still fails if body is empty or malformed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Downstream code then receives None and crashes.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "data = request.get_json(silent=True) or {}",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "Check request.is_json before parsing: if request.is_json: data = request.get_json()",
      "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": "2024-05-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}