encode

val encode: EncodeClosure

Default JSON encoder, backed by kotlinx.serialization, that takes a Payload /* JsonObject */ and converts it into a JSON String.