how to get json data as response python dlask 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)