var json = "{"name":"ok1","sex":"man"}"; //Newtonsoft.Json.Linq 将json转换成IEnumerable集合对象在遍历 string ids = ((IEnumerable)json).Cast<Newtonsoft.Json.Linq.JObject>(). Aggregate("", (a, item) => a + (item["name"]) + ",");