diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2010-11-27 23:34:12 -0700 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2010-11-27 23:34:12 -0700 |
| commit | 8373de5fad2ea0ced5411be37596e014e33a24af (patch) | |
| tree | 8037fb34e37c383ddd0ddb671835c14a437091d7 /docs | |
| parent | f018a81bbb4dfa445430ac95cca099c995123c94 (diff) | |
| download | pyramid-8373de5fad2ea0ced5411be37596e014e33a24af.tar.gz pyramid-8373de5fad2ea0ced5411be37596e014e33a24af.tar.bz2 pyramid-8373de5fad2ea0ced5411be37596e014e33a24af.zip | |
remove lie about json renderer calling view result
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/views.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst index 4ac825613..d5dbce328 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -429,9 +429,8 @@ attributes by attaching properties to the request. See ``json``: JSON Renderer +++++++++++++++++++++++ -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 +The ``json`` renderer renders view callable +results to :term:`JSON`. It passes the return value through the ``json.dumps`` standard library function, and wraps the result in a response object. It also sets the response content-type to ``application/json``. |
