api / tv.twelvetone.json / JsonArray / add

add

fun add(value: Int): JsonArray

Appends the JSON representation of the specified int value to the end of this array.

Parameters

value - the value to add to the array

Return
the array itself, to enable method chaining

fun add(value: Long): JsonArray

Appends the JSON representation of the specified long value to the end of this array.

Parameters

value - the value to add to the array

Return
the array itself, to enable method chaining

fun add(value: Float): JsonArray

Appends the JSON representation of the specified float value to the end of this array.

Parameters

value - the value to add to the array

Return
the array itself, to enable method chaining

fun add(value: Double): JsonArray

Appends the JSON representation of the specified double value to the end of this array.

Parameters

value - the value to add to the array

Return
the array itself, to enable method chaining

fun add(value: Boolean): JsonArray

Appends the JSON representation of the specified boolean value to the end of this array.

Parameters

value - the value to add to the array

Return
the array itself, to enable method chaining

fun add(value: String): JsonArray

Appends the JSON representation of the specified string to the end of this array.

Parameters

value - the string to add to the array

Return
the array itself, to enable method chaining

fun add(value: JsonValue?): JsonArray

Appends the specified JSON value to the end of this array.

Parameters

value - the JsonValue to add to the array, must not be null

Return
the array itself, to enable method chaining