JSONString

data class JSONString(val string: String) : JSONElement

JSON string.

Constructors

Link copied to clipboard
constructor(string: String)

Functions

Link copied to clipboard
open override fun accept(visitor: JSONVisitor)
Link copied to clipboard
fun findAncestor(type: KClass<out JSONElement>, predicate: (JSONElement) -> Boolean = {true}): JSONElement?

Finds the first ancestor of the current JSONElement whose class matches type and which verifies a predicate.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

The string held by this JSONElement.