ret={

  'a':1

}

return jsonify(ret)

不能直接返回ret,应该用jsonify()。这样返回的Content-Type: application/json;charset=utf-8

 

如果使用json.dumps(ret)返回的Content-Type: text/html

相关文章:

  • 2021-09-10
  • 2022-02-12
  • 2021-12-09
  • 2021-07-25
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-07-22
  • 2021-05-04
相关资源
相似解决方案