change METADATA to json format