JsonConvert.DeserializeObject 的用法

 JObject Jo = (JObject)JsonConvert.DeserializeObject(strJson);
 
            JArray Jarows = JArray.Parse(Jo["rows"].ToString());
            for (int i = 0; i < Jarows.Count; i++)
            {

                JObject Jorow = (JObject)JsonConvert.DeserializeObject(Jarows[i].ToString());

    JArray Jarexhibitors = JArray.Parse(Jorow["exhibitors"].ToString());
            for (int i = 0; i < Jarexhibitors.Count; i++)
            {  

 JObject Joexhibitor = (JObject)JsonConvert.DeserializeObject(Jarexhibitors[i].ToString());

           }

你可能感兴趣的:(C#)