def read_index(db):

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

    return data
Read the index and return the data.
dataset/ETHPy150Open punchagan/cinspect/cinspect/index/serialize.py/read_index