问题描述
我有一个jsondata,它不过是一个对象数组.
如下图所示:
JSONdata-> [0]-[universitycode] = 10001,[cgpa] = 8.3,[duration] = 80hrs
[1]-[universitycode] = 10002,[cgpa] = 7.3,[duration] = 80hrs
[2]-[universitycode] = 10003,[cgpa] = 9.3,[duration] = 90hrs
现在,我必须找到具有大学代码10001的对象.
您能提供最简单的方法吗?
我不想在这里放循环.像服务器端Linq查询一样,我需要where语句,select语句等,是否有任何插件或扩展名?
I am having one jsondata, which is nothing but an object array.
It looks like below:
JSONdata--> [0] - [universitycode]=10001,[cgpa]=8.3,[duration]=80hrs
[1] - [universitycode]=10002,[cgpa]=7.3,[duration]=80hrs
[2] - [universitycode]=10003,[cgpa]=9.3,[duration]=90hrs
Now I have to find which object has universitycode 10001.
Can you please provide the easiest way to find this?
I dont want to put for loop here. Like server side Linq query,I need where statement, select statement etc. is there any plugin or extension??
推荐答案
这篇关于Linq喜欢用javascript查询.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!