Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to return json response in flask

from flask import jsonify

@app.route('/summary')
def summary():
    d = make_summary()
    return jsonify(d)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #json #response #flask
ADD COMMENT
Topic
Name
1+6 =