encode To String
open override fun <T> encodeToString(serializer: SerializationStrategy<T>, value: T): String
Content copied to clipboard
Serializes the value into an equivalent EJSON using the given serializer.
Throws
kotlinx. serialization. Serialization Exception
if the given value cannot be serialized to EJSON.