{
  "id": "python/fastapi-valueerror-json-encode-error",
  "signature": "ValueError: Invalid JSON: Expecting property name enclosed in double quotes",
  "signature_zh": "值错误：无效的JSON：期望属性名用双引号括起来",
  "regex": "ValueError:\\ Invalid\\ JSON:\\ Expecting\\ property\\ name\\ enclosed\\ in\\ double\\ quotes",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Request body contains invalid JSON syntax (e.g., single quotes instead of double quotes).",
  "root_cause_type": "generic",
  "root_cause_zh": "请求体包含无效的JSON语法（例如单引号而不是双引号）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Assuming JSON allows single quotes",
      "why_fails": "JSON standard requires double quotes for strings.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using Python dict directly in JSON body",
      "why_fails": "Python dict representation is not valid JSON.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use proper JSON formatting",
      "success_rate": 0.95,
      "how": "{\"name\": \"John\", \"age\": 30}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use json.dumps() to convert Python object",
      "success_rate": 0.9,
      "how": "import json\njson.dumps({'name': 'John'})",
      "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-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}