zoukankan      html  css  js  c++  java
  • Newtonsoft.Json

    在线生成实体:http://tool.chinaz.com/tools/json2entity.aspx

      
              RootObject ac = new RootObject();
                ac = JsonConvert.DeserializeObject<RootObject>(sb.ToString());
                sb2.Append(ac.status);
                sb2.Append("<br>");
                sb2.Append(ac.lastResult.message);
                Context.Response.Write(sb2.ToString());
    
    
    
    
    
    
    
    
      public class RootObject
        {
            public string status { get; set; }
            public string billstatus { get; set; }
            public string message { get; set; }
            public string autoCheck { get; set; }
            public string comOld { get; set; }
            public string comNew { get; set; }
            public LastResult lastResult { get; set; }
        }
    
        public class LastResult
        {
            public string message { get; set; }
            public string nu { get; set; }
            public string ischeck { get; set; }
            public string condition { get; set; }
            public string com { get; set; }
            public string status { get; set; }
            public string state { get; set; }
            public List<Data> data { get; set; }
        }
    
        public class Data
        {
            public string time { get; set; }
            public string ftime { get; set; }
            public string context { get; set; }
        }
    
  • 相关阅读:
    slf4j + log4j 记录日志
    Executors介绍
    Java集合(JDK1.6.0_45)
    Java多线程系列目录(共43篇)
    线程池体系
    FutureTask
    23种设计模式分类
    结构型 之 适配器模式
    信号量Semaphore详解以及应用
    Excel格式转化工具
  • 原文地址:https://www.cnblogs.com/LCX/p/6006341.html
Copyright © 2011-2022 走看看