Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
typealias JsonArray = kotlinx.serialization.json.JsonArray
Link copied to clipboard
class JsonCastException(val element: Any, val type: KClass<*>) : JsonKtException
Link copied to clipboard
Link copied to clipboard
typealias JsonElement = kotlinx.serialization.json.JsonElement
Link copied to clipboard
object JsonKt
Link copied to clipboard
open class JsonKtException(val message: String) : Exception
Link copied to clipboard
typealias JsonNull = kotlinx.serialization.json.JsonNull
Link copied to clipboard
Link copied to clipboard
typealias JsonObject = kotlinx.serialization.json.JsonObject
Link copied to clipboard
typealias JsonPrimitive = kotlinx.serialization.json.JsonPrimitive

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> JsonElement.cast(): T
inline fun <T> JsonPrimitive.cast(): T
Link copied to clipboard
inline fun JsonArray.copy(block: (JsonMutableArray) -> Unit): JsonArray
inline fun JsonObject.copy(block: (JsonMutableMap) -> Unit): JsonObject
Link copied to clipboard
fun JsonElement.copyAsArray(block: (JsonMutableArray) -> Unit): JsonArray
Link copied to clipboard
fun JsonElement.copyAsObject(block: (JsonMutableMap) -> Unit): JsonObject
Link copied to clipboard
fun JsonModel.encodeToString(customizedJson: Json): String
fun JsonPairArray.encodeToString(customizedJson: Json = Json): String
fun JsonPairIterable.encodeToString(customizedJson: Json = Json): String
fun JsonPairSequence.encodeToString(customizedJson: Json = Json): String
fun JsonElement.encodeToString(customizedJson: Json = Json): String
Link copied to clipboard
operator fun JsonElement.get(index: Int): JsonElement
operator fun JsonElement.get(key: String): JsonElement
Link copied to clipboard
Link copied to clipboard
fun jsonArrayOf(vararg elements: JsonValue): JsonArray
Link copied to clipboard
fun jsonObjectOf(vararg pairs: JsonPair): JsonObject
Link copied to clipboard
fun <T : JsonModel> JsonValueArray.parseArray(block: (JsonObject) -> T): List<T>
fun <T : JsonModel> String.parseArray(block: (JsonObject) -> T): List<T>
fun <T : JsonModel> JsonValueIterable.parseArray(block: (JsonObject) -> T): List<T>
fun <T : JsonModel> JsonValueSequence.parseArray(block: (JsonObject) -> T): List<T>
fun <T : JsonModel> JsonArray.parseArray(block: (JsonObject) -> T): List<T>
inline fun <T : JsonModel> JsonValueArray.parseArray(): List<T>
inline fun <T : JsonModel> String.parseArray(): List<T>
inline fun <T : JsonModel> JsonValueIterable.parseArray(): List<T>
inline fun <T : JsonModel> JsonValueSequence.parseArray(): List<T>
inline fun <T : JsonModel> JsonArray.parseArray(): List<T>
inline fun <T : JsonModel> JsonElement.parseArray(): List<T>
fun <T : JsonModel> JsonElement.parseArray(model: KClass<T>): List<T>
Link copied to clipboard
fun <T : JsonModel> JsonValueArray?.parseArrayOrNull(block: (JsonObject) -> T): List<T>?
fun <T : JsonModel> String?.parseArrayOrNull(block: (JsonObject) -> T): List<T>?
fun <T : JsonModel> JsonValueIterable?.parseArrayOrNull(block: (JsonObject) -> T): List<T>?
fun <T : JsonModel> JsonValueSequence?.parseArrayOrNull(block: (JsonObject) -> T): List<T>?
inline fun <T : JsonModel> JsonValueArray?.parseArrayOrNull(): List<T>?
inline fun <T : JsonModel> String?.parseArrayOrNull(): List<T>?
inline fun <T : JsonModel> JsonValueIterable?.parseArrayOrNull(): List<T>?
inline fun <T : JsonModel> JsonValueSequence?.parseArrayOrNull(): List<T>?
inline fun <T : JsonModel> JsonArray?.parseArrayOrNull(): List<T>?
inline fun <T : JsonModel> JsonElement?.parseArrayOrNull(): List<T>?
fun <T : JsonModel> JsonElement?.parseArrayOrNull(model: KClass<T>): List<T>?
Link copied to clipboard
fun <T : JsonModel> JsonPairArray.parseObject(block: (JsonObject) -> T): T
fun <T : JsonModel> String.parseObject(block: (JsonObject) -> T): T
fun <T : JsonModel> JsonPairIterable.parseObject(block: (JsonObject) -> T): T
fun <T : JsonModel> JsonMap.parseObject(block: (JsonObject) -> T): T
fun <T : JsonModel> JsonPairSequence.parseObject(block: (JsonObject) -> T): T
inline fun <T : JsonModel> JsonPairArray.parseObject(): T
inline fun <T : JsonModel> String.parseObject(): T
inline fun <T : JsonModel> JsonPairIterable.parseObject(): T
inline fun <T : JsonModel> JsonMap.parseObject(): T
inline fun <T : JsonModel> JsonPairSequence.parseObject(): T
inline fun <T : JsonModel> JsonElement.parseObject(): T
inline fun <T : JsonModel> JsonObject.parseObject(): T
fun <T : JsonModel> JsonElement.parseObject(model: KClass<T>): T
Link copied to clipboard
fun <T : JsonModel> JsonPairArray?.parseObjectOrNull(block: (JsonObject) -> T): T?
fun <T : JsonModel> String?.parseObjectOrNull(block: (JsonObject) -> T): T?
fun <T : JsonModel> JsonPairIterable?.parseObjectOrNull(block: (JsonObject) -> T): T?
fun <T : JsonModel> JsonMap?.parseObjectOrNull(block: (JsonObject) -> T): T?
fun <T : JsonModel> JsonPairSequence?.parseObjectOrNull(block: (JsonObject) -> T): T?
inline fun <T : JsonModel> JsonPairArray?.parseObjectOrNull(): T?
inline fun <T : JsonModel> String?.parseObjectOrNull(): T?
inline fun <T : JsonModel> JsonPairIterable?.parseObjectOrNull(): T?
inline fun <T : JsonModel> JsonMap?.parseObjectOrNull(): T?
inline fun <T : JsonModel> JsonPairSequence?.parseObjectOrNull(): T?
inline fun <T : JsonModel> JsonElement?.parseObjectOrNull(): T?
inline fun <T : JsonModel> JsonObject?.parseObjectOrNull(): T?
fun <T : JsonModel> JsonElement?.parseObjectOrNull(model: KClass<T>): T?
Link copied to clipboard
inline fun <T> JsonPrimitive.safeCast(): T?
Link copied to clipboard
fun JsonValueArray.toJsonArray(): JsonArray
fun JsonValueIterable.toJsonArray(): JsonArray
fun JsonValueSequence.toJsonArray(): JsonArray
Link copied to clipboard
fun JsonValueArray?.toJsonArrayOrNull(): JsonArray?
fun JsonValueIterable?.toJsonArrayOrNull(): JsonArray?
fun JsonValueSequence?.toJsonArrayOrNull(): JsonArray?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun JsonPairArray.toJsonObject(): JsonObject
fun JsonPairIterable.toJsonObject(): JsonObject
fun JsonMap.toJsonObject(): JsonObject
fun JsonPairSequence.toJsonObject(): JsonObject
Link copied to clipboard
fun JsonPairArray?.toJsonObjectOrNull(): JsonObject?
fun JsonPairIterable?.toJsonObjectOrNull(): JsonObject?
fun JsonPairSequence?.toJsonObjectOrNull(): JsonObject?
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val JsonElement.primitiveOrNull: JsonPrimitive?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard