summaryrefslogtreecommitdiff
path: root/docs/api/request.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-09 21:12:06 -0400
committerChris McDonough <chrism@plope.com>2011-07-09 21:12:06 -0400
commit6a0602b3ce4d2a6de9dca25d8e0d390796a79267 (patch)
treebd26594b0c0c1a45a6dcfb265478d271e54fac9b /docs/api/request.rst
parentb44aab103120749bd42e531974f28e67c16a1be0 (diff)
downloadpyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.tar.gz
pyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.tar.bz2
pyramid-6a0602b3ce4d2a6de9dca25d8e0d390796a79267.zip
request.json -> request.json_body; add some docs for json_body
Diffstat (limited to 'docs/api/request.rst')
-rw-r--r--docs/api/request.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/api/request.rst b/docs/api/request.rst
index 5dfb2ae9a..404825d1b 100644
--- a/docs/api/request.rst
+++ b/docs/api/request.rst
@@ -180,12 +180,12 @@
object (exposed to view code as ``request.response``) to influence
rendered response behavior.
- .. attribute:: json
+ .. attribute:: json_body
- If the request's ``content_type`` is ``application/json``, this
- attribute will contain the JSON-decoded variant of the request body.
- If the request's ``content_type`` is not ``application/json``, this
- attribute will be ``None``.
+ This property will return the JSON-decoded variant of the request
+ body. If the request body is not well-formed JSON, or there is no
+ body associated with this request, this property will raise an
+ exception. See also :ref:`request_json_body`.
.. note::