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"]) + ",");

 

相关文章:

猜你喜欢
  • 2019-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案