Convert to metadata.json