JsonValue

sealed class JsonValue<out T>

A representation of a JsonValue type used to represent data that can pertain to multiple primitive types.

Inheritors

Types

Link copied to clipboard
data class JsonArray<V>(val value: List<V>) : JsonValue<Array<V>>
Link copied to clipboard
data class JsonBoolean(val value: Boolean) : JsonValue<Boolean>
Link copied to clipboard
data class JsonDouble(val value: Double) : JsonValue<Double>
Link copied to clipboard
data class JsonInteger(val value: Int) : JsonValue<Int>
Link copied to clipboard
data class JsonMap(val value: Map<*, *>) : JsonValue<Map<String, Any>>
Link copied to clipboard
data class JsonString(val value: String) : JsonValue<String>

Functions

Link copied to clipboard
fun unwrap(): Any

Unwrap the value associated with the specific JsonValue type.