def json_decode_hook(data):
    for key, value in list(data.items()):
        if not isinstance(value, six.string_types):
            continue

        for regex, fns in _PATTERNS:
            if regex.match(value):
                for fn in fns:
                    try:
                        data[key] = fn(value)
                        break
                    except __HOLE__:
                        pass

                break

    return data
dataset/ETHPy150Open matthiask/plata/plata/fields.py/json_decode_hook