zoukankan      html  css  js  c++  java
  • json

    using Newtonsoft.Json.Linq;

    using Newtonsoft.Json;

    JObject json = (JObject)JsonConvert.DeserializeObject(json);

    JObject monitorinfo = (JObject)JsonConvert.DeserializeObject(responseContent);
    JArray jar = JArray.Parse(monitorinfo["data"].ToString());
    string emsg = string.Empty;

    mod.Success = Convert.ToBoolean(monitorinfo["success"]) ? 1 : 0;
    if (mod.Success == 0)
    {
    mod.ReasonCode = monitorinfo["reason_code"].ToString();
    mod.ReasonDesc = monitorinfo["reason_desc"].ToString();
    }

    modBLACKLIST mod1 = JsonConvert.DeserializeObject<modBLACKLIST>(risklist[j].ToString());

    public class modGREYLIST : modCommonField
    {
    public string evidence_type { get; set; }
    public string risk_level { get; set; }
    public JArray risk_type { get; set; }
    public string monitor_field_zh { get; set; }
    public string evidence_type_zh { get; set; }
    public string risk_level_zh { get; set; }
    public JArray risk_type_zh { get; set; }
    }

  • 相关阅读:
    [swustoj 411] 售货员的难题
    白书P61
    白书P60
    [ZOJ 3471] Most Powerful
    [HDU 3001] Travelling
    [转] acmer必看的26个对acm态度
    [HDU 1254] 推箱子
    [POJ 3311] Hie with the Pie
    [POJ 3254] Corn Fields
    power
  • 原文地址:https://www.cnblogs.com/2333hh/p/5970459.html
Copyright © 2011-2022 走看看