I am new to python, I am upgrading a flask app from python2 to python3 with minimal code changes, but not able to get rid of issue with dictionary and jsonify.
Here 'data' is a dictionary.
message = {
'success': True,
'result': data
}
resp = jsonify(message)
resp.status_code = 200
return resp
Getting this error ;
TypeError: Object of type 'bytes' is not JSON serializable
Can someone help to get past this.?