Skip to content
Snippets Groups Projects
Commit a4afdcc2 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add datatype to smartencoder

parent 8199339c
No related branches found
No related tags found
No related merge requests found
Pipeline #49572 passed
......@@ -109,6 +109,8 @@ class SmartJsonEncoder(json.JSONEncoder):
return o.tolist()
elif isinstance(o, numpy.uint64):
return int(o)
elif isinstance(o, numpy.uint32):
return int(o)
elif isinstance(o, datetime):
return o.isoformat()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment