We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05476c0 + a73ec5a commit bc615d5Copy full SHA for bc615d5
1 file changed
base_rest/http.py
@@ -50,6 +50,8 @@ def default(self, obj): # pylint: disable=E0202,arguments-differ
50
return obj.isoformat()
51
elif isinstance(obj, datetime.date):
52
53
+ elif isinstance(obj, datetime.time):
54
+ return obj.isoformat()
55
elif isinstance(obj, decimal.Decimal):
56
return float(obj)
57
return super(JSONEncoder, self).default(obj)
0 commit comments