Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use json in flask

#to manage json data in a request you have to use the get_json request method.
@app.route("/route", methods=["POST"])
def route():
        data = request.get_json()
        # use data
        return redirect("/")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #flask
ADD COMMENT
Topic
Name
5+1 =