Chris McDonough
2013-09-12 44327c30ac807896ec999ca000373a29c94da95c
appease
1 files modified
16 ■■■■■ changed files
pyramid/renderers.py 16 ●●●●● patch | view | raw | blame | history
pyramid/renderers.py
@@ -201,11 +201,17 @@
    adapters with the renderer.  See
    :ref:`json_serializing_custom_objects` for more information.
    The default serializer uses ``json.JSONEncoder``. A different
    serializer can be specified via the ``serializer`` argument.
    Custom serializers should accept the object, a callback
    ``default``, and any extra ``kw`` keyword arguments passed during
    renderer construction.
    .. note::
        The default serializer uses ``json.JSONEncoder``. A different
        serializer can be specified via the ``serializer`` argument.  Custom
        serializers should accept the object, a callback ``default``, and any
        extra ``kw`` keyword arguments passed during renderer construction.
        This feature isn't widely used but it can be used to replace the
        stock JSON serializer with, say, simplejson.  If all you want to
        do, however, is serialize custom objects, you should use the method
        explained in :ref:`json_serializing_custom_objects` instead
        of replacing the serializer.
    .. versionadded:: 1.4
       Prior to this version, there was no public API for supplying options