sealed class JsonPrimitive<T> : JsonValue
Since
2.0
Represents a json primitive, either a boolean, string, number or null.
abstract val value: T |
open operator fun get(key: String): JsonValueopen operator fun get(index: Int): JsonValue |
|
open operator fun set(key: String, value: Any?): Unitopen operator fun set(index: Int, value: Any?): Unit |
fun <T> cast(): T |
|
open fun toString(): String |
sealed class JsonBoolean : JsonPrimitive<Boolean> |
|
object JsonNull : JsonPrimitive<Nothing?> |
|
class JsonNumber : JsonPrimitive<String> |
|
class JsonString : JsonPrimitive<String> |