vertx / io.vertx.kotlin.core.json / obj

obj

fun Json.obj(vararg fields: Pair<String, Any?>): JsonObject

A io.vertx.core.json.JsonObject builder from a varargs of fields, i.e a varargs of Pair<String, Any?>

Parameters

fields - the varargs of json fields

Return
a io.vertx.core.json.JsonObject

fun Json.obj(fields: Iterable<Pair<String, Any?>>): JsonObject

A io.vertx.core.json.JsonObject builder from an Iterable of fields, i.e an Iterable of Pair<String, Any?>

Parameters

fields - the Iterable of json fields

Return
a io.vertx.core.json.JsonObject

fun Json.obj(fields: Map<String, Any?>): JsonObject

A io.vertx.core.json.JsonObject builder from an Map of fields, i.e a Map<String, Any?>

Parameters

fields - the Map of json fields

Return
a io.vertx.core.json.JsonObject

fun Json.obj(block: JsonObject.() -> Unit): JsonObject

A function for applying a block onto a io.vertx.core.json.JsonObject.