Exclude null fields while serialization using Utf8Json library?
问题 Is there any way to ignore null fields while serializing POCO to JSON string using Utf8Json library? I have a ToString method in my below class which I am using externally so I wanted to see if there is any way to exclude null fields while doing serialization? Basically I don't want null fields in my json string after serialization. I am using Uft8Json library here. public class Process { public Process() { } [DataMember(Name = "lang_code")] public string LCode { get; set; } [DataMember(Name