stringify index of generated files and save to index.json