how to return json response in flask
snippet in javascript

how to return json response in flask

user3508

from flask import jsonify

@app.route('/summary')
def summary():
    d = make_summary()
    return jsonify(d)