using Newtonsoft.Json.Linq; using Newtonsoft.Json;
JObject json1 = (JObject)JsonConvert.DeserializeObject(strJson); string event1 = json1["event"].ToString() ; string callid = json1["callid"].ToString(); string callidunique = ""; if (json1.Property("callidunique") != null)//是否存在 { callidunique = json1["callidunique"].ToString(); }
标签:json1,C#,JObject,键值,callidunique,ToString,string From: https://www.cnblogs.com/hailexuexi/p/17176239.html