jsonkraken / net.jemzart.jsonkraken / JsonObject

JsonObject

class JsonObject : JsonContainer, Iterable<Entry<String, JsonValue>>

Since
1.0 JsonValue representation for 'object'.

Constructors

<init>

JsonObject(vararg properties: Pair<String, Any?>)

json object filled with properties. Each pair first value must be compliant with the JSON specification. Each pair second value must be of a valid type (See 'Valid Types').

JsonObject()

empty json object.

Properties

keys

val keys: MutableSet<String>

size

val size: Int

values

val values: MutableCollection<JsonValue>

Functions

clone

fun clone(): JsonObject

containsKey

fun containsKey(key: String): Boolean

get

fun get(key: String): JsonValue

isEmpty

fun isEmpty(): Boolean

iterator

operator fun iterator(): MutableIterator<MutableEntry<String, JsonValue>>

remove

fun remove(key: String): Unit

set

fun set(key: String, value: Any?): Unit

Inherited Functions

get

open operator fun get(index: Int): JsonValue

isNotEmpty

fun isNotEmpty(): Boolean

set

open operator fun set(index: Int, value: Any?): Unit