class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
Extensible JSON encoder for Python data structures.
Supports the following objects and types by default:
Python JSON dict object list, tuple array str string int, float, int- & float-derived Enums number True true False false None null
Changed in version 3.4: Added support for int- and float-derived Enum classes.
To extend this to