def date_decimal_hook(dct):
    if '__datetime__' in dct:
        return todatetime(dct['__datetime__'])
    elif '__date__' in dct:
        return todatetime(dct['__date__']).date()
    elif '__decimal__' in dct:
        return Decimal(dct['__decimal__'])
    else:
        return dct
The default JSON decoder hook. It is the inverse of
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/utils/jsontools.py/date_decimal_hook