Package-level declarations

Types

Link copied to clipboard

DSL scope for applying pointer-based mutations to a JsonArray.

Link copied to clipboard
annotation class JsonMutationDsl

DslMarker annotation for JSON mutation DSL scopes.

Link copied to clipboard

DSL scope for applying pointer-based mutations to a JsonObject.

Functions

Link copied to clipboard
operator fun JsonArray.get(pointer: JsonPointer): JsonElement?

Returns the JsonElement at the location identified by pointer, or null if pointer is the root pointer and this function returns the array itself.

operator fun JsonObject.get(pointer: JsonPointer): JsonElement?

Returns the JsonElement at the location identified by pointer, or null if a key along the path is absent.

Link copied to clipboard
fun JsonArray.mutate(block: JsonArrayMutationScope.() -> Unit): JsonArray

Creates a new JsonArray by applying pointer-based mutations within block.

fun JsonObject.mutate(block: JsonObjectMutationScope.() -> Unit): JsonObject

Creates a new JsonObject by applying pointer-based mutations within block.