我是json的新手。我必须在 C# 中使用 linq to json 查询过滤 json 数据。我必须从以下示例 json 数据中检索多个值:
{
"parts": [
{
"attributes": {
"Motherboard": "Gigabyte GA-H81M-S2H",
"Max RAM": "16GB",
"Form Factor": "Micro ATX",
"RAM Slots": 2,
"Socket / CPU": "LGA1150"
},
"type": "Motherboard",
"name": "Gigabyte GA-H81M-S2H",
"slug": "gigabyte-motherboard-gah81ms2h"
},
{
"attributes": {
"Motherboard": "MSI H55-G43",
"Max RAM": "16GB",
"Form Factor": "ATX",
"RAM Slots": 4,
"Socket / CPU": "LGA1156"
},
"type": "Motherboard",
"name": "MSI H55-G43",
"slug": "msi-motherboard-h55g43"
},
{
"url": "http://pcpartpicker.com/part/asus-motherboard-rampageivblackedition",
"attributes": {
"Motherboard": "Asus Rampage IV Black Edition",
"Max RAM": "128GB",
"Form Factor": "EATX",
"RAM Slots": 8,
"Socket / CPU": "LGA2011"
},
"type": "Motherboard",
"name": "Asus Rampage IV Black Edition",
"slug": "asus-motherboard-rampageivblackedition"
}
],
}
请帮助我查询如何使用 where 子句选择多个(键、值)。我必须使用 where 子句选择名称、slug、外形尺寸、主板。