Package-level declarations

Types

Link copied to clipboard
data class JsonArray(val items: MutableList<JsonNode> = mutableListOf()) : JsonNode

An array with items

Link copied to clipboard

Dsl for a JsonArray.

Link copied to clipboard

A node with a boolean value

Link copied to clipboard
sealed interface JsonNode

A generic node

Link copied to clipboard

A node without a value (i.e. 'null')

Link copied to clipboard

A node with a numeric value

Link copied to clipboard
data class JsonObject(val properties: MutableMap<String, JsonNode>) : JsonNode

An object with properties

Link copied to clipboard

Dsl for a JsonObject.

Link copied to clipboard

A node with a text value

Link copied to clipboard
sealed class JsonValue<T> : JsonNode

A node with a value of any type

Functions

Link copied to clipboard
fun array(block: JsonArrayDsl.() -> Unit): JsonArray

Construct a new JsonArray.

Link copied to clipboard
fun obj(block: JsonObjectDsl.() -> Unit): JsonObject

Construct a new JsonObject.