def safeget(dct, keys):
    """
    Get a nested value in a json file
    Only nested dict is supported, no lists
    """
    for key in keys:
        try:
            dct = dct[key]
        except KeyError:
            return None
    return dct