Dec-05-2018, 10:09 PM
If you're using flask, you can just return the data. Printing only prints it to the console on the server side, it never makes it to the client. If you didn't already have json, and instead had something like a dict, Flask has a jsonify function to help. The docs for that function will probably help, as they show example usage: http://flask.pocoo.org/docs/1.0/api/#flask.json.jsonify