how to send a respond in flask server code example
Example: how to return json response in flask
from flask import jsonify
@app.route('/summary')
def summary():
d = make_summary()
return jsonify(d)
from flask import jsonify
@app.route('/summary')
def summary():
d = make_summary()
return jsonify(d)