JoyMap

interface JoyMap : JoyObject

JSON-like object view backed by a mutable map.

Provides typed accessors and factory helpers for nested arrays/objects while preserving nullability and absent-key semantics.

Functions

Link copied to clipboard
abstract fun array(key: String): JoyList?

Returns a nested array at key or null if absent.

Link copied to clipboard
abstract fun boolean(key: String): Boolean?

Returns the boolean value for key or null if absent/non-boolean.

Link copied to clipboard
abstract fun createEmptyArray(key: String): JoyList

Creates and inserts an empty array at key, returning it.

Link copied to clipboard
abstract fun createEmptyObject(key: String): JoyMap

Creates and inserts an empty object at key, returning it.

Link copied to clipboard
abstract fun number(key: String): Double?

Returns the numeric value for key or null if absent/non-numeric.

Link copied to clipboard
abstract fun obj(key: String): JoyMap?

Returns a nested object at key or null if absent.

Link copied to clipboard
abstract fun string(key: String): String?

Returns the string value for key or null if absent.