# ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

- **ID:** `python/starlette-request-json-decode-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

请求体JSON格式错误，例如使用单引号而不是双引号

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **确保客户端发送有效JSON** (95% success)
   ```
   {"name": "John"}
   ```
2. **在服务器端使用宽松解析** (80% success)
   ```
   import json
body = await request.body()
try:
    data = json.loads(body)
except ValueError:
    data = eval(body)  # 不推荐
   ```

## Dead Ends

- **尝试在服务器端修复JSON格式** — 服务器端无法修改请求体内容 (50% fail)
- **使用eval解析JSON** — eval不安全且不适用于所有JSON变体 (60% fail)
