Uses Request.get_json() instead of Request.json.

This is suggested in the Flask documentation:

  http://flask.pocoo.org/docs/api/#flask.Request.json