Function AttachmentMetaDataToJSON