maxNestingDepth

Maximum structural nesting depth the typed encoder/decoder will descend before throwing a kotlinx.serialization.SerializationException, instead of overflowing the call stack on a deeply nested recursive @Serializable type. Defaults to 32 and can be raised to 65,536 when the runtime stack permits. See DerConfiguration.maxNestingDepth. This does not bound recursion inside custom serializers or Asn1Serializable.doDecode.