def default(self, obj):
        if isinstance(obj, datetime.datetime):
            return int(mktime(obj.timetuple()))
        return json.JSONEncoder.default(self, obj)
convert datetime instance to str datetime
dataset/ETHPy150Open kashifrazzaqui/vyked/vyked/utils/jsonencoder.py/VykedEncoder.default