Enum DefaultValueHandling
Specifies default value handling options for the JsonSerializer.
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Flags]
public enum DefaultValueHandling
Examples
Fields
Name | Description |
---|---|
Ignore | Ignore members where the member value is the same as the member's default value when serializing objects
so that is is not written to JSON.
This option will ignore all default values (e.g. |
IgnoreAndPopulate | Ignore members where the member value is the same as the member's default value when serializing objects and sets members to their default value when deserializing. |
Include | Include members where the member value is the same as the member's default value when serializing objects. Included members are written to JSON. Has no effect when deserializing. |
Populate | Members with a default value but no JSON will be set to their default value when deserializing. |