AnyValueSerializer

object AnyValueSerializer : KSerializer<AnyValue> (source)

Serializes an AnyValue as the JSON it holds. Encoding works with any encoder (the value is encoded structurally as strings, booleans, doubles, lists and maps), decoding only with a JSON decoder, as the shape of the value is only known once it is read. The Android SDK's is a placeholder that its own encoder recognises; on Android that one is used.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): AnyValue
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: AnyValue)