def write_index(db, data):

    with open(db, 'w') as f:
        json.dump(data, f, indent=2)


# ### Private protocol ########################################################
Read the index and return the data.
dataset/ETHPy150Open punchagan/cinspect/cinspect/index/serialize.py/write_index