Sebastian Schuberth
11/13/2025, 11:52 AMdescriptor for a serializer that can deserialize from either a string or object? I was previously using buildSerialDescriptor(serialName, SerialKind.CONTEXTUAL) { ... } but I just learned from its docs that its use is discouraged in favor of buildClassSerialDescriptor, but that doe snot allow me to declare that the deserializer is contextual...ephemient
11/13/2025, 8:31 PMSerialDescriptor(serialName, serialDescriptor<JsonElement>())Sebastian Schuberth
11/13/2025, 8:32 PMJsonElement too generic to be meaningful? I mean, the point of the descriptor is to describe the typed structure.Sebastian Schuberth
11/13/2025, 8:33 PMSebastian Schuberth
11/13/2025, 8:34 PMephemient
11/13/2025, 11:03 PMpdvrieze
11/26/2025, 9:43 PMSebastian Schuberth
11/27/2025, 6:49 AMa (de-)serializer than can deserialize from different syntaxes is not what KxS calls "contextual".It seems KxS only calls those (de-)serializers "contextual" that have context provided via
SerializersModule. But a simple deserializer that can parse different JSON representations of the same data class is not contextual. Or?