summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-03-28 03:06:35 +0000
committerChris McDonough <chrism@agendaless.com>2010-03-28 03:06:35 +0000
commit6b37ea99e2980fc88b5bc9a985bcda650540ce5b (patch)
treedb0babfc02c12a35e7fe6e64908b26d007454ad6 /docs/narr
parent05f19008c1d312e903a40a0b9827252541a8942e (diff)
downloadpyramid-6b37ea99e2980fc88b5bc9a985bcda650540ce5b.tar.gz
pyramid-6b37ea99e2980fc88b5bc9a985bcda650540ce5b.tar.bz2
pyramid-6b37ea99e2980fc88b5bc9a985bcda650540ce5b.zip
Mention content-type settings.
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/views.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst
index f88f50d92..75cd6cc92 100644
--- a/docs/narr/views.rst
+++ b/docs/narr/views.rst
@@ -395,7 +395,8 @@ The ``json`` renderer is a renderer which renders view callable
results to :term:`JSON`. If a view callable returns a non-Response
object it is called. It passes the return value through the
``json.dumps`` standard library function, and wraps the result in a
-response object.
+response object. It also sets the response content-type to
+``application/json``.
Here's an example of a view that returns a dictionary. If the
``json`` renderer is specified in the configuration for this view, the