import json

@app.route('/_array2python')
def array2python():
    wordlist = json.loads(request.args.get('wordlist'))
return jsonify(result=wordlist)
How to pass a javascript array to a python script using flask [using flask example]