api / tv.twelvetone.json / Json / array

array

fun array(): JsonArray

Creates a new empty JsonArray. This is equivalent to creating a new JsonArray using the constructor.

Return
a new empty JSON array

fun array(vararg values: Int): JsonArray

Creates a new JsonArray that contains the JSON representations of the given int values.

Parameters

values - the values to be included in the new JSON array

Return
a new JSON array that contains the given values

fun array(vararg values: Long): JsonArray

Creates a new JsonArray that contains the JSON representations of the given long values.

Parameters

values - the values to be included in the new JSON array

Return
a new JSON array that contains the given values

fun array(vararg values: Float): JsonArray

Creates a new JsonArray that contains the JSON representations of the given float values.

Parameters

values - the values to be included in the new JSON array

Return
a new JSON array that contains the given values

fun array(vararg values: Double): JsonArray

Creates a new JsonArray that contains the JSON representations of the given double values.

Parameters

values - the values to be included in the new JSON array

Return
a new JSON array that contains the given values

fun array(vararg values: Boolean): JsonArray

Creates a new JsonArray that contains the JSON representations of the given boolean values.

Parameters

values - the values to be included in the new JSON array

Return
a new JSON array that contains the given values

fun array(vararg strings: String): JsonArray

Creates a new JsonArray that contains the JSON representations of the given strings.

Parameters

strings - the strings to be included in the new JSON array

Return
a new JSON array that contains the given strings