Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

To handle non-standard types you can implement the default() method in the 
subclass of json.JSONEncoder 
(https://docs.python.org/3/library/json.html#json.JSONEncoder.default) or pass 
the corresponding argument to json.JSONEncoder() or json.dumps().

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39196>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to