private static void setupClient()
        {
            client = String.IsNullOrEmpty(password) ? new RestController(null, null) : new RestController(username, password);
            // alternatively, you can choose .net default data contract serializer: new DefaultDataContractJsonSerializer();
            JsonDotnetJsonSerializer serializer = new JsonDotnetJsonSerializer();

            serializer.PrintStreamBeforeDeserialize = true;
            client.JsonSerializer = serializer;
        }
        /// <summary>
        /// To string
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            JsonDotnetJsonSerializer serializer = new JsonDotnetJsonSerializer();

            return(serializer.Serialize(this));
        }