You are here: Symbol Reference > Stimulsoft.Base.Json Namespace > DefaultValueHandling Enumeration
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
Stimulsoft.Base.Json.DefaultValueHandling Enumeration

Specifies default value handling options for the JsonSerializer.

Syntax
C++
C#
Visual Basic
public: enum DefaultValueHandling { Include = 0, Ignore = 1, Populate = 2, IgnoreAndPopulate = Ignore|Populate };
Members
Members 
Description 
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.  
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. null for objects and nullable types; 0 for integers, decimals and floating point numbers; and false for booleans). The default value ignored can be changed by placing the DefaultValueAttribute on the property.  
Populate 
Members with a default value but no JSON will be set to their default value when deserializing.  
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.  
Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.