Skip to content

JsonNullHandling Enum ​

Defines how JSON null tokens are applied when populating an existing object.

Namespace: JASE
Assembly: JASE.Serializers.dll

Underlying Type int

Fields ​

NameValueDescription
Ignore0Ignores JSON null tokens. The corresponding target property is left unchanged.
SetIfNullable1Applies null only when the target property can accept it (reference types or Nullable1` value types). If the property is non-nullable, the value is left unchanged.
Throw2Throws an exception if the JSON contains null for a property whose target type does not allow null.