K = {
'a':1
}
return jsonify(ret)
Not directly return ret, should jsonify (). Such return Content-Type: application / json; charset = utf-8
If you use json.dumps (ret) return Content-Type: text / html
K = {
'a':1
}
return jsonify(ret)
Not directly return ret, should jsonify (). Such return Content-Type: application / json; charset = utf-8
If you use json.dumps (ret) return Content-Type: text / html