JsonObject

JsonObject represents a JSON object, but unlike regular JSON, it has TimeTickets created by logical clock to resolve conflicts.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(key: String): JsonElement
Link copied to clipboard
inline fun <T : JsonElement> getAs(key: String): T
Link copied to clipboard
inline fun <T : JsonElement> getAsOrNull(key: String): T?
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun remove(key: String)
Link copied to clipboard
operator fun set(key: String, value: JsonPrimitive?)
operator fun set(key: String, value: Date)
operator fun set(key: String, value: Boolean)
operator fun set(key: String, value: ByteArray)
operator fun set(key: String, value: Double)
operator fun set(key: String, value: Int)
operator fun set(key: String, value: Long)
operator fun set(key: String, value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

TODO(skhugh): we need to find a better way to handle this

Link copied to clipboard
Link copied to clipboard
fun setNewTree(key: String, initialRoot: JsonTree.ElementNode? = null): JsonTree
Link copied to clipboard
fun toJson(): String
Link copied to clipboard
open override fun toString(): String