encodeToJson

fun <T> encodeToJson(serializer: SerializationStrategy<T>, value: T): String

Encode a serializable object to a JSON string