forked from orbit-oss/flask
Removed second mention of json. This fixes #290
This commit is contained in:
parent
92c7bdd2dd
commit
63876614b6
2 changed files with 3 additions and 7 deletions
|
|
@ -119,12 +119,6 @@ Incoming Request Data
|
|||
Libraries that do that are prototype, jQuery and Mochikit and
|
||||
probably some more.
|
||||
|
||||
.. attribute:: json
|
||||
|
||||
Contains the parsed body of the JSON request if the mimetype of
|
||||
the incoming data was `application/json`. This requires Python 2.6
|
||||
or an installed version of simplejson.
|
||||
|
||||
.. class:: request
|
||||
|
||||
To access incoming request data, you can use the global `request`
|
||||
|
|
|
|||
|
|
@ -91,7 +91,9 @@ class Request(RequestBase):
|
|||
@cached_property
|
||||
def json(self):
|
||||
"""If the mimetype is `application/json` this will contain the
|
||||
parsed JSON data.
|
||||
parsed JSON data. Otherwise this will be `None`.
|
||||
|
||||
This requires Python 2.6 or an installed version of simplejson.
|
||||
"""
|
||||
if __debug__:
|
||||
_assert_have_json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue