Skip to content
Snippets Groups Projects
Commit d2d7237ceb81 authored by Jure Cerjak's avatar Jure Cerjak
Browse files

docstring fix in JSONEncoder: use_decimal defaults to True

parent 9815b777024a
Branches
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
transformed into unicode using that encoding prior to JSON-encoding. transformed into unicode using that encoding prior to JSON-encoding.
The default is UTF-8. 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 be supported directly by the encoder. For the inverse, decode JSON
with ``parse_float=decimal.Decimal``. with ``parse_float=decimal.Decimal``.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment