0
我想能夠使用c#提取所有數據點sin下面的json。我需要所有StandardId的所有值。不只是一個單一的數據點,而是所有實例StandardIdc#挑出數據表json
{
"CreatedBy": null,
"CanBeRemoved": false,
"ConfigurationItems": [ "" ],
"ApprovalReasons": [
{
"AssociatedCI": "",
"AssociatedRuleName": "BRS: ",
"AssociatedRuleApprovalType": null,
"AssociatedRulePartyType": "Group",
"AssociatedRulePartyName": "Digital ",
"AssociatedAdditionalComment": "Added to all "
}
],
"PossibleApprovers": [
{
"Approver": {
"Display": "Jag",
"StandardId": "I6",
"RoleName": null,
"FullName": null,
"LineOfBusiness": null,
"ErrorMessage": null
},
"IsEscalation": false,
"IsDelegate": false
},
{
"Approver": {
"Display": "Will",
"StandardId": "U55",
"RoleName": null,
"FullName": null,
"LineOfBusiness": null,
"ErrorMessage": null
},
"IsEscalation": false,
"IsDelegate": false
},
{
"Approver": {
"Display": "Su",
"StandardId": "U2",
"RoleName": null,
"FullName": null,
"LineOfBusiness": null,
"ErrorMessage": null
},
"IsEscalation": false,
"IsDelegate": false
}
],
"OriginalApprovals": [],
"AggregatedApproval": null,
"IsAggregated": false,
"AggregationId": 0,
"UpdatedBy": null,
"UpdatedDt": null,
"IsGroupActive": false
}
反序列化爲一個對象,然後只需訪問屬性 – maccettura
是,如何?我從來沒有使用json – kacalapy
可能的重複[如何解析JSON與C#?](https://stackoverflow.com/questions/6620165/how-can-i-parse-json-with-c) – NtFreX