kotlinx-serialization / kotlinx.serialization.json / JsonTransformingSerializer / descriptor

descriptor

(common, js, jvm, native) open val descriptor: SerialDescriptor

A descriptor for this transformation. By default, it uses the name composed of tSerializer's descriptor and transformation name, kind of tSerializer's descriptor and contains 0 elements.

However, this descriptor can be overridden to achieve better representation of the resulting JSON shape for schema generating or introspection purposes.