JSON encoders module.
as_date
Return the RFC3339 UTC string representation of the given date and time.
dat (datetime.date) – the object/type to be serialized.
datetime.date
TypeError
when o is not an instance of datetime.date.
o
(str) JSON serializable type for the given object.
as_object
Return a JSON serializable type for o.
obj (object) – the object to be serialized.
object
AttributeError
when o is not a Python object.
JSON serializable type for the given object.
(dict)