Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

A json representation of a boolean value

Link copied to clipboard

A json representation of double values

Link copied to clipboard
interface JsonElement

A JsonElement represents all elements of json

Link copied to clipboard

A json representation of integer values

Link copied to clipboard

A json representation of a null value

Link copied to clipboard
Link copied to clipboard

A json primitive (String (JsonStringElement), Integer (JsonIntegerElement), Double (JsonDoubleElement)

Link copied to clipboard

A json representation of string values

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Create an empty JsonArray

@JvmName(name = "jsonArrayOfElements")
fun jsonArrayOf(vararg values: JsonElement): JsonArray

Create a JsonArray out of JsonElements

fun jsonArrayOf(vararg values: Any?): JsonArray

Create a JsonArray out of anonymous values

@JvmName(name = "jsonArrayOfElements")
fun jsonArrayOf(value: Collection<JsonElement>): JsonArray

Create a JsonArray out of a Collection of JsonElements

Create a JsonArray out of a Collection of anonymous values

Link copied to clipboard

Create an empty JsonObject

@JvmName(name = "jsonObjectOfElements")
fun jsonObjectOf(vararg values: Pair<String, JsonElement>): JsonObject

Create a JsonObject out of JsonElements

fun jsonObjectOf(vararg values: Pair<String, Any?>): JsonObject

Create a JsonObject out of anonymous values

@JvmName(name = "jsonObjectOfElements")
fun jsonObjectOf(value: Map<String, JsonElement>): JsonObject

Create a JsonObject out of a Map of JsonElements

Create a JsonObject out of a Map of anonymous values