import pickle
import json

'''
'clutch2data' reads the pickle file which was created by 'clutch' and generates
various output data files.
'''

inputFile = open('clutch2.pkl', 'rb')
projects = pickle.load(inputFile)
inputFile.close()
with open('content/clutch/clutch.json', 'w', encoding='utf-8') as f:
        json.dump(projects, f, sort_keys=True, indent=2, ensure_ascii=False)

