• 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; }
        }
    
  • 相关阅读:
    解决vs code just-in-time报错的方法
    c++ 右值引用
    c++11 知识点
    ip路由名词介绍&琐碎知识
    第二次结对作业
    软工程第三次作业
    第二次作业
    软件工程第一次作业
    理解Object.defineProperty()
    concat()拷贝的局限性
  • 原文地址:https://www.cnblogs.com/LCX/p/6006341.html
Copyright © 2020-2023  润新知