Skip to content
Snippets Groups Projects
Commit 88a401ac4376 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

Merge pull request #116 from d0ugal/patch-1

Fixed a typo in the docs
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@
>>> def encode_complex(obj):
... if isinstance(obj, complex):
... return [obj.real, obj.imag]
... raise TypeError(repr(o) + " is not JSON serializable")
... raise TypeError(repr(obj) + " is not JSON serializable")
...
>>> json.dumps(2 + 1j, default=encode_complex)
'[2.0, 1.0]'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment