开发者

What is the best way to query json objects/arrays in javascript?

开发者 https://www.devze.com 2023-01-23 10:41 出处:网络
Are there specific js libra开发者_开发知识库ries or techniques for querying json objects in the browser - i.e. \'get all People where person.name = \"Joe\"\'. Something similar to what linq does in .N

Are there specific js libra开发者_开发知识库ries or techniques for querying json objects in the browser - i.e. 'get all People where person.name = "Joe"'. Something similar to what linq does in .NET.....


You may take a look at LINQ to Javascript. There are also many others, just pick one that fits your needs.


There are several options:

  • jsonpath
  • Dojo jsonquery
  • There are several others listed at the bottom of the Wikipedia linq page.
0

精彩评论

暂无评论...
验证码 换一张
取 消