# 类型错误：'Response' 对象不可调用

- **ID:** `python/flask-jsonify-mimetype`
- **领域:** python
- **类别:** type_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

误用 jsonify 或错误地返回响应对象，通常是由于缺少括号或使用了错误的导入。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **Use jsonify correctly with parentheses** (100% 成功率)
   ```
   from flask import jsonify
return jsonify({'key': 'value'})
   ```
2. **Use a dictionary directly with Flask's response** (95% 成功率)
   ```
   return {'key': 'value'}  # Flask auto-converts dicts to JSON
   ```

## 无效尝试

- **Returning jsonify without parentheses** — jsonify is a function that must be called. (90% 失败率)
- **Importing jsonify from the wrong module** — Should be from flask import jsonify. (80% 失败率)
