public string SerializeObject <T>(T objectToSerialize)
 {
     return(MySerialize.JsonStringify(objectToSerialize));
 }
 /// <summary>
 /// A blocking function used to simplify the entire process of responding with a JSON object.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="response"></param>
 /// <param name="responseObject"></param>
 /// <param name="statusCode"></param>
 /// <param name="statusDescription"></param>
 public static void WriteJsonResponse <T>(this HttpListenerResponse response, T responseObject,
                                          int statusCode = 200, string statusDescription = "OK")
 {
     WriteJsonStringResponse(response, MySerialize.JsonStringify(responseObject), statusCode, statusDescription);
 }
 public void SetObject(T transportObject)
 {
     data = MySerialize.JsonStringify(transportObject, false);
 }