Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Nov 19, 2011
1 parent 7932321 commit 6aeb8f5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.rst
Expand Up @@ -190,12 +190,16 @@ Basic Usage
The default of *use_decimal* changed to ``True`` in 2.2.0.

If *namedtuple_as_object* is true (default: ``True``),
:class:`tuple` subclasses with ``_asdict()`` methods will be encoded
objects with ``_asdict()`` methods will be encoded
as JSON objects.

.. versionchanged:: 2.2.0
*namedtuple_as_object* is new in 2.2.0.

.. versionchanged:: 2.3.0
*namedtuple_as_object* no longer requires that these objects be
subclasses of :class:`tuple`.

If *tuple_as_array* is true (default: ``True``),
:class:`tuple` (and subclasses) will be encoded as JSON arrays.

Expand Down Expand Up @@ -484,12 +488,16 @@ Encoders and decoders
``'utf-8'``.

If *namedtuple_as_object* is true (default: ``True``),
:class:`tuple` subclasses with ``_asdict()`` methods will be encoded
objects with ``_asdict()`` methods will be encoded
as JSON objects.

.. versionchanged:: 2.2.0
*namedtuple_as_object* is new in 2.2.0.

.. versionchanged:: 2.3.0
*namedtuple_as_object* no longer requires that these objects be
subclasses of :class:`tuple`.

If *tuple_as_array* is true (default: ``True``),
:class:`tuple` (and subclasses) will be encoded as JSON arrays.

Expand Down

0 comments on commit 6aeb8f5

Please sign in to comment.