Ignore properties —  C#

C# CONCEPTSLearn how to ignore properties based on numerous measures with System.Text.Json.Learning ObjectivesWhen serializing C# objects to JSON using “System.Text.Json,” all public properties by default serialized. If you don’t want a few of them to appear in the result, there are several options.The article demonstrates how to ignoreIndividual propertiesA null-value propertiesAll read-only propertiesAll null-value propertiesAll default-value … Continue reading Ignore properties —  C#

Contract Resolver

JSON SERIALIZATIONThis article demonstrates how to rename or manipulate JSON properties during serialization without changing the classPrerequisitesHow to create a .Net Core Console Application? => LinkInstall the “NewtonSoft.Json” package from NuGet.Getting StartedCreate an EntityBefore getting started, let us create a class “CustomerInfo ”to be used for serialization with the following properties.public class CustomerInfo { public string FirstName { … Continue reading Contract Resolver