【发布时间】:2021-10-21 10:43:25
【问题描述】:
我是 C# json 的新手。 我只想获取 CardTransactions 数组,“status”:0,并忽略其余的 json 值。 请问我知道如何用c#实现。
{
"response":{
"timeStamp":7812371,
"totalCount":1,
"CardTransactions":[
{
"transactionDate":"2021-08-16",
"invoiceNo":"KM011782313",
"amount":2000.00
}
],
"status":0,
"message":"dakjalsda"
},
"status":null,
"message":null
}
【问题讨论】:
-
您是使用Newtonsoft.Json(也称为Json.NET)还是System.Text.Json进行反序列化?