예제 #1
0
        public static string GetJsonMessage(string message)
        {
            JsonMessage jsonMessage = new JsonMessage(message);

            return(JsonConvert.SerializeObject(jsonMessage));
        }
예제 #2
0
        public static JsonMessage ReadJsonMessage(string message)
        {
            JsonMessage jsonMessage = JsonConvert.DeserializeObject <JsonMessage>(message);

            return(jsonMessage);
        }