public static string Serialize(ActionLinkConfig actionLinkConfig)
 {
     using (var ms = new MemoryStream())
     {
         var serializer = new DataContractJsonSerializer(typeof(ActionLinkConfig));
         serializer.WriteObject(ms, actionLinkConfig);
         ms.Seek(0, SeekOrigin.Begin);
         return(Encoding.UTF8.GetString(ms.GetBuffer(), 0, (int)ms.Length));
     }
 }
 public static string Serialize(ActionLinkConfig actionLinkConfig)
 {
     return(JsonSerializer.Serialize(actionLinkConfig));
 }