Json

external interface Json(source)

An interface for indexing access to a collection of key-value pairs, where type of key is String and type of value is Any?.

Since Kotlin

1.1

Functions

Link copied to clipboard
fun Json.add(other: Json): Json

Adds key-value pairs from other to this. Returns the original receiver.

Since Kotlin 1.1
Link copied to clipboard
abstract operator fun get(propertyName: String): Any?

Calls to the function will be translated to indexing operation (square brackets) on the receiver with propertyName as the argument.

Since Kotlin 1.1
Link copied to clipboard
abstract operator fun set(propertyName: String, value: Any?)

Calls of the function will be translated to an assignment of value to the receiver indexed (with square brackets/index operation) with propertyName.

Since Kotlin 1.1