change json format for the metadata