classDiscriminatorMode

Defines which classes and objects should have class discriminator added to the output. ClassDiscriminatorMode.POLYMORPHIC by default.

Other modes are generally intended to produce JSON for consumption by third-party libraries, therefore, this setting does not affect the deserialization process.