https://stackoverflow.com/questions/20001229/how-to-get-posted-json-in-flask
You need to set the request content type to application/json for the .json property and .get_json() method (with no arguments) to work as either will produce None otherwise.