C#中如何将josn数据中的某个字段数据删除

2025-01-03 00:47:31
推荐回答(2个)
回答1:

var test={
"Wo":[
{
"new":"3",
"trans":"r"
}
],
"Ma":[
{
"s":"04743c9a831e48d3a7196083855bafc4",
"content":""
},
{
"s":"cca508bcf12a46e19109c28641c334e6",
"content":""
},
{
"s":"09f6fc80ef00437fba5a0c26eb077da3",
"content":""
},
{
"s":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"content":""
},
{
"s":"0222f32acef846458d3282840a4f82b3",
"content":""
}
],
"ST":[
{
"a":"04743c9a831e48d3a7196083855bafc4",
"Content":"1"
},
{
"a":"cca508bcf12a46e19109c28641c334e6",
"Content":"2"
},
{
"a":"09f6fc80ef00437fba5a0c26eb077da3",
"Content":"3"
},
{
"a":"a5158d2a8edc4e8f9d8604bee7c4b46f",
"Content":"4"
},
{
"a":"0222f32acef846458d3282840a4f82b3",
"Content":"5"
}
]
}
delete test.ST;

回答2:

你能把你的实体类贴出来么?
我看下。
叫你发邮件你也没有发。