File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,12 @@ def is_json(self):
123
123
return False
124
124
125
125
def get_json (self , force = False , silent = False , cache = True ):
126
- """Parses the incoming JSON request data and returns it. If
127
- parsing fails the :meth:`on_json_loading_failed` method on the
128
- request object will be invoked. By default this function will
129
- only load the json data if the mimetype is :mimetype:`application/json`
130
- but this can be overridden by the `force` parameter.
126
+ """Parses the incoming JSON request data and returns it. By default
127
+ this function will return ``None`` if the mimetype is not
128
+ :mimetype:`application/json` but this can be overridden by the
129
+ ``force`` parameter. If parsing fails the
130
+ :meth:`on_json_loading_failed` method on the request object will be
131
+ invoked.
131
132
132
133
:param force: if set to ``True`` the mimetype is ignored.
133
134
:param silent: if set to ``True`` this method will fail silently
You can’t perform that action at this time.
0 commit comments