Skip to content

Serializer

expect object Serializer : KSerializer<BsonValue> 

Serializer for the official opensavvy.ktmongo.bson.official.BsonValue implementation.

This serializer only supports the official MongoDB library `org.bson:bson-kotlinx`.

If support for other formats is important to you, please [comment on the tracking issue](https://gitlab.com/opensavvy/ktmongo/-/work_items/122).

actual object Serializer : KSerializer<BsonValue> 

Properties

descriptor

abstract override val descriptor: SerialDescriptor
open override val descriptor: SerialDescriptor

Functions

deserialize

expect abstract fun deserialize(decoder: Decoder): BsonValue
open override fun deserialize(decoder: Decoder): BsonValue

serialize

expect abstract fun serialize(encoder: Encoder, value: BsonValue)
open override fun serialize(encoder: Encoder, value: BsonValue)