flask.Request.is_json

Request.is_json

Indicates if this request is JSON or not. By default a request is considered to include JSON data if the mimetype is application/json or application/*+json.

New in version 0.11.