Json序列化,不序列化某个字段

在指定的可为空的字段上增加特性“[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]”即可; class Program { static void Main(string[] args) { TestMan test = new
posted @ 2021-10-08 23:44  艾特-天空之海  阅读(1648)  评论(1编辑  收藏  举报