From 8edc82afcf6f7512b05fba32baa536fe756bd273 Mon Sep 17 00:00:00 2001 From: Jure Cerjak Date: Mon, 12 Jun 2017 11:20:49 +0200 Subject: docstring fix in JSONEncoder: use_decimal defaults to True --- simplejson/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplejson/encoder.py b/simplejson/encoder.py index 226480f..b5c3141 100644 --- a/simplejson/encoder.py +++ b/simplejson/encoder.py @@ -185,7 +185,7 @@ class JSONEncoder(object): transformed into unicode using that encoding prior to JSON-encoding. The default is UTF-8. - If use_decimal is true (not the default), ``decimal.Decimal`` will + If use_decimal is true (default: ``True``), ``decimal.Decimal`` will be supported directly by the encoder. For the inverse, decode JSON with ``parse_float=decimal.Decimal``. -- cgit v1.2.1