Rectangle 27 0

python Flask API TypeError: Object of type 'Response' is not JSON serializable?


from flask import jsonify
def myMethod():
    ....
    response = jsonify(data)
    response.status_code = 200 # or 400 or whatever
    return response
Note