carb::dictionary::fSerializerOptionSerializeInfinityAsNull

Defined in carb/dictionary/ISerializer.h

constexpr SerializerOptions carb::dictionary::fSerializerOptionSerializeInfinityAsNull = (1 << 3)

Flag to indicate that the JSON serializer should write out infinity and NaN floating point values as a null object.

If this flag is not used, the default behavior is to write out the value as a special string that can later be serialized back to an infinite value by the same serializer plugin. This flag is only used in the JSON serializer plugin since infinite values are not supported by the JSON standard itself.