vertx / io.vertx.kotlin.core.json

Package io.vertx.kotlin.core.json

Types

Json

object Json

Extensions for External Classes

io.vertx.core.json.JsonArray

io.vertx.core.json.JsonObject

Functions

JsonArray

fun JsonArray(vararg values: Any?): JsonArray

JsonObject

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

array

fun Json.array(vararg values: Any?): JsonArray

A io.vertx.core.json.JsonArray builder from a varargs of values, i.e a varargs of Any?

fun Json.array(values: Iterable<Any?>): JsonArray

A io.vertx.core.json.JsonArray builder from an Iterable of values, i.e an Iterable of Any?

fun Json.array(block: JsonArray.() -> Unit): JsonArray

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

fun Json.array(value: JsonObject): JsonArray
fun Json.array(value: JsonArray): JsonArray

json

fun <T> json(block: Json.() -> T): T

The json builder for creating io.vertx.core.json.JsonObject or io.vertx.core.json.JsonArray

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?>

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?>

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?>

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

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