def json_hook(obj):
    for k, v in obj.items():
        if isinstance(v, basestring):
            try:
                obj[k] = datetime.strptime(v, "new Date(%Y-%m-%d)").date()
            except __HOLE__:
                pass
            try:
                obj[k] = datetime.strptime(v, "%Y-%m-%dT%H:%M:%S")
            except ValueError:
                pass
    return obj
dataset/ETHPy150Open pudo/archivekit/archivekit/util.py/json_hook