I want my flask server to accept a json file and print it.
I am sending the json with:
curl -X POST -F file=@/home/user1/Desktop/test.json 0.0.0.0:5000/testjson
This is the server's code:
@app.route('/testjson', methods=['POST'])
def trigger_json_test():
POST_content = request.get_json()
print(POST_content)
return make_response(json.dumps({'fileid': "ok"}), 200)
While the server responds with the correct response, all i see to the terminal regarding the print()
is None