Esempio n. 1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            OrderResponse  or     = new OrderResponse();
            ResponseResult result = or.QueryOrderResultOut(null);

            Newtonsoft.Json.Converters.IsoDateTimeConverter timeConverter = new Newtonsoft.Json.Converters.IsoDateTimeConverter();
            timeConverter.DateTimeFormat = "yyyy'-'MM'-'dd' 'HH':'mm':'ss";
            string strRes = JsonConvert.SerializeObject(result, timeConverter);

            TextBox1.Text = strRes;
        }