I have a response created with jsonify and I need to add additional data in that response. Is this possible?
I have:
from flask import make_response, jsonify
resp = make_response(jsonify({"data": {"person": {"name": "ko", "error": "not responding"}}}), 500)
...
I need to do something like:
resp.append(jsonify({"value":1}))
So I can return both data and value in the same json.