Skip to content
Myr

minor rewording of get_json documentation for clarity (#1781)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Miguel Grinberg · committed by David Lord · parent 317d603 · Browse files · 1 file+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:flask/wrappers.py+6 added-5 removed
121 unmodified lines
122 return True123 return False124125 def get_json(self, force=False, silent=False, cache=True):126 """Parses the incoming JSON request data and returns it. If127 parsing fails the :meth:`on_json_loading_failed` method on the128 request object will be invoked. By default this function will129 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 default127 this function will return ``None`` if the mimetype is not128 :mimetype:`application/json` but this can be overridden by the129 ``force`` parameter. If parsing fails the130 :meth:`on_json_loading_failed` method on the request object will be131 invoked.132133 :param force: if set to ``True`` the mimetype is ignored.134 :param silent: if set to ``True`` this method will fail silently135 and return ``None``.
69 unmodified lines