Skip to content
Myr

Deprecate request.json property

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

authored by INADA Naoki · committed by INADA Naoki · parent 7169f44 · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:flask/wrappers.py+3 added-1 removed
101 unmodified lines
102 parsed JSON data. Otherwise this will be `None`.103104 The :meth:`get_json` method should be used instead.105 """106 # XXX: deprecate property106 from warnings import warn107 warn(DeprecationWarning('json is deprecated. '108 'Use get_json() instead.'), stacklevel=2)109 return self.get_json()110111 @property112 def is_json(self):
89 unmodified lines