title: Flask request and application/json content type
body: <p>I have a flask app with the following view:</p>
  
  <pre><code>@menus.route('/', methods=["PUT", "POST"])
  def new():
      return jsonify(request.json)
  </code></pre>
  
  <p>However, this only works if the request's content type is set to <code>application/json</code>, otherwise the dict <code>request.json</code> is None.</p>
  
  <p>I know that <code>request.data</code> has the request body as a string, but I don't want to be parsing it  to a dict everytime a client forgets to set the request's content-type.</p>
  
  <p>Is there a way to assume that every incoming request's content-type is <code>application/json</code>? All I want is to always have access to a valid <code>request.json</code> dict, even if the client forgets to set the application content-type to json.</p>