libb.JSONEncoderISODate
- class JSONEncoderISODate(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]
Bases:
JSONEncoderJSON encoder that serializes dates in ISO format.
Example:
>>> JSONEncoderISODate().encode({'dt': datetime.date(2014, 10, 2)}) '{"dt": "2014-10-02"}'