使用 jsonify
时,返回的 http response
的 Content-Type
是:Content-Type: application/json
使用json.dumps时,Content-Type则是:Content-Type: text/html; charset=utf-8
其他基本一样
使用 jsonify
时,返回的 http response
的 Content-Type
是:Content-Type: application/json
使用json.dumps时,Content-Type则是:Content-Type: text/html; charset=utf-8
其他基本一样