def load_json_from_search_path(filename, search_paths):
    with open(find_file(filename, search_paths)) as json_file:
        try:
            data = json.load(json_file)
        except __HOLE__ as e:
            fatal_error("%s does not contain valid JSON: \n%s\n" %
                    (filename, e))
        else:
            return data
dataset/ETHPy150Open openxc/openxc-python/openxc/utils.py/load_json_from_search_path