summaryrefslogtreecommitdiff
path: root/index.rst
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2011-11-18 16:54:47 -0800
committerBob Ippolito <bob@redivi.com>2011-11-18 16:54:47 -0800
commit6aeb8f5963b9e683c6473766fef66875f6fcf40e (patch)
tree3423184db1e2aee4134c515285d9739575608dbe /index.rst
parent793232196f4d341863b791e356e7d95504f82d28 (diff)
downloadsimplejson-6aeb8f5963b9e683c6473766fef66875f6fcf40e.tar.gz
update docs
Diffstat (limited to 'index.rst')
-rw-r--r--index.rst14
1 files changed, 11 insertions, 3 deletions
diff --git a/index.rst b/index.rst
index 11f076e..fd92f4d 100644
--- a/index.rst
+++ b/index.rst
@@ -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.
@@ -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.