JsonArrayBuilder

Provides api to build JsonArray using dsl.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun array(builder: JsonArrayBuilder.() -> Unit)

Adds to array value of type JsonArray constructed using JsonArrayBuilder.

Link copied to clipboard
fun boolean(value: Boolean)

Adds to array value of type JsonBoolean with given value.

Link copied to clipboard

Builds constructed JsonArray.

Link copied to clipboard
fun byte(value: Byte)

Adds to array value of type JsonNumber with given Byte.

Link copied to clipboard
fun double(value: Double)

Adds to array value of type JsonNumber with given Double.

Link copied to clipboard
fun float(value: Float)

Adds to array value of type JsonNumber with given Float.

Link copied to clipboard
fun int(value: Int)

Adds to array value of type JsonNumber with given Int.

Link copied to clipboard
fun json(json: Json)

Adds arbitrary Json to array.

Link copied to clipboard
fun long(value: Long)

Adds to array value of type JsonNumber with given Long.

Link copied to clipboard
fun nul()

Adds JsonNull to array.

Link copied to clipboard
fun number(value: Number)

Adds to array value of type JsonNumber with given Number.

Link copied to clipboard
fun obj(builder: JsonObjectBuilder.() -> Unit)

Adds to array value of type JsonObject constructed using JsonObjectBuilder.

Link copied to clipboard
fun short(value: Short)

Adds to array value of type JsonNumber with given Short.

Link copied to clipboard
fun string(value: String)

Adds to array value of type JsonString with given value.