add SSP inspired metadataToJson