json.Serializer options

Options of the json.Serializer class for controlling serialization and deserialization behavior.

Serializer options

Important:

These serializer-specific options are supported only by json.Serializer and do not work with util.JSON.

Table 1. Serializer options
Option Description Affects
allowImplicitConversion = value
Allow implicit type conversions during JSON deserialization when the JSON property specifies one type, but the values suggest another. Deserialization (JSON to BDL)
allowNullAsDefault = value
Allow NULL values to be accepted during deserialization when the json_null="null" attribute is not explicitly specified. Deserialization (JSON to BDL)
serializeNullAsDefault = value
Allow NULL values during serialization even when constraints are set, such as when JSONRequired is defined or when json_null="null" is not defined. Serialization (BDL to JSON)