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.
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.
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.
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.
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.
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.
strings
- the strings to be included in the new JSON array
Return
a new JSON array that contains the given strings