vertx / io.vertx.kotlin.core.buffer / io.vertx.core.buffer.Buffer

Extensions for io.vertx.core.buffer.Buffer

appendJson

fun Buffer.appendJson(pretty: Boolean = false, block: Json.() -> Any): Buffer

Appends the specified json {@code block} to the end of this Buffer. The buffer will expand as necessary to accommodate any bytes written.