encode

fun encode(value: Any, json: Json): String

The payload as JSON text, which is what the jsonb codec encodes.