public static JsonMessage ReadJsonMessage(string message) { JsonMessage jsonMessage = JsonConvert.DeserializeObject <JsonMessage>(message); return(jsonMessage); }
public static string GetJsonMessage(string message) { JsonMessage jsonMessage = new JsonMessage(message); return(JsonConvert.SerializeObject(jsonMessage)); }