GenericJsonObject

abstract class GenericJsonObject : JsonObject<Any>

A type of JsonObject that holds Any values

Constructors

Link copied to clipboard
fun GenericJsonObject()

Functions

Link copied to clipboard
infix fun String.by(value: GenericJsonObject.() -> Unit)
infix fun String.by(value: Action<GenericJsonObject>)

Set a custom object value for this JsonObject

infix fun String.by(value: Any)

Set a custom value for this JsonObject

Link copied to clipboard
open fun finalise(): MutableMap<String, Any>

Resolves the underlying json value to a MutableMap instance, recursively merging known and custom properties and resolving all Provider values

Link copied to clipboard
fun json(value: GenericJsonObject.() -> Unit): GenericJsonObject
fun json(value: Action<GenericJsonObject>): GenericJsonObject

Build a custom object value

Link copied to clipboard
operator fun set(key: String, value: Any)

Set a custom value

operator fun set(key: String, value: Provider<Any>)

Set a custom value provider to be resolved when finalise is invoked

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard