Companion

Functions

Link copied to clipboard
fun of(): JsonArray

Create an empty JsonArray

@JvmName(name = "ofElements")
fun of(vararg values: JsonElement): JsonArray

Create a JsonArray out of JsonElements

fun of(vararg values: Any?): JsonArray

Create a JsonArray out of anonymous values

@JvmName(name = "ofElements")
fun of(value: Collection<JsonElement>): JsonArray

Create a JsonArray out of a Collection of JsonElements

fun of(value: Collection<Any?>): JsonArray

Create a JsonArray out of a Collection of anonymous values