KObject

interface KObject : TypedKObject<Any?> , MutableMap<String, Any?>

A wrapper around MutableMap to represent a JSON object

Types

TO
Link copied to clipboard
class TO(map: KObject, key: String)

Functions

clear
Link copied to clipboard
abstract fun clear()
containsKey
Link copied to clipboard
abstract fun containsKey(key: String): Boolean
containsValue
Link copied to clipboard
abstract fun containsValue(value: Any?): Boolean
get
Link copied to clipboard
open operator fun String.get(vararg items: Any?)

Adds an array field

abstract operator fun get(key: String): Any?
invoke
Link copied to clipboard
open operator fun String.invoke(obj: KObject.() -> Unit)

Adds an object field

isEmpty
Link copied to clipboard
abstract fun isEmpty(): Boolean
put
Link copied to clipboard
abstract fun put(key: String, value: Any?): Any?
putAll
Link copied to clipboard
abstract fun putAll(from: Map<out String, Any?>)
remove
Link copied to clipboard
abstract fun remove(key: String): Any?
to
Link copied to clipboard
open infix fun String.to(obj: KObject.() -> Unit)

Adds an object field

open infix fun String.to(value: Any?)

Adds a field

Properties

entries
Link copied to clipboard
abstract override val entries: MutableSet<MutableMap.MutableEntry<String, Any?>>
karr
Link copied to clipboard
open val karr: KARR

Array builder hook. Useless by its own...

keys
Link copied to clipboard
abstract override val keys: MutableSet<String>
size
Link copied to clipboard
abstract val size: Int
to
Link copied to clipboard
open val String.to: KObject.TO

Array builder hook. Useless by its own...

values
Link copied to clipboard
abstract override val values: MutableCollection<Any?>