def get_jsons(grid_file):
    with open(grid_file) as f:
        f.readline()  # Pop off the top
        f.readline()
        for line in f:
            try:
                yield json.loads(line[:-2])
            except __HOLE__:
                yield json.loads(line)
                break
dataset/ETHPy150Open CenterForOpenScience/scrapi/institutions/grid.py/get_jsons