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
Add the decorated callable as a handler for the given key (sequence).
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/utils/jsontools.py/date_decimal_hook--crossover with--dataset/ETHPy150Open Julian/PyVi/pyvi/mode.py/Mode.handles