What is the best way to query json objects/arrays in javascript?
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.
精彩评论