小编asc*_*ixi的帖子

如何在 C# 中从 JObject 中删除属性?

我有一个具有以下键/值的 JObject 实例:

{ "filed1": "4", "filed2": "name", "filed3": null, "filed4": "2021-09-20T00:00:00Z", "filed5": null, "filed6": null, "filed7": null }
Run Code Online (Sandbox Code Playgroud)

我需要删除一个属性,即filed1. 我怎样才能在 C# 中做到这一点?

c# json json.net deserialization

1
推荐指数
1
解决办法
2074
查看次数

标签 统计

c# ×1

deserialization ×1

json ×1

json.net ×1