generation of metadata.json file