jsonkraken / net.jemzart.jsonkraken / JsonValue

JsonValue

sealed class JsonValue

Since
1.0 Represents any json value.

Functions

cast

fun <T> cast(): T

get

abstract operator fun get(key: String): JsonValue
abstract operator fun get(index: Int): JsonValue

set

abstract operator fun set(key: String, value: Any?): Unit
abstract operator fun set(index: Int, value: Any?): Unit

toString

open fun toString(): String

Inheritors

JsonContainer

sealed class JsonContainer : JsonValue

JsonPrimitive

sealed class JsonPrimitive<T> : JsonValue