def read_index(db):

    if exists(db):
        with open(db) as f:
            data = json.load(f)
    else:
        data = {}

    return data
Regression test for #1375.
dataset/ETHPy150Open punchagan/cinspect/cinspect/index/serialize.py/read_index--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/interpolate/tests/test_fitpack2.py/TestUnivariateSpline.test_resize_regression