What is the JSON.NET equivalent of XML's XPath, SelectNodes, SelectSingleNode?

前端 未结 2 1832
时光取名叫无心
时光取名叫无心 2020-11-27 19:16

At present, the structure of my code uses XmlDocument to load Xml data and then SelectNodes to iterate through a list of repeating items.

F

2条回答
  •  [愿得一人]
    2020-11-27 19:59

    Do you have an object hierarchy that you can map the the JSON? You could create an object tree (i.e. deserialize the JSON), and use LINQ's Where, SelectMany, etc.

提交回复
热议问题