interface JsonEvent
A JSON event emited by the JsonParser.
Author
Julien Viet
abstract fun arrayValue(): JsonArray |
|
abstract fun binaryValue(): Buffer
Return the binary value. JSON itself has no notion of a binary, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains a Base64 encoded binary, which it decodes if found and returns. |
|
abstract fun booleanValue(): Boolean |
|
abstract fun doubleValue(): Double |
|
abstract fun fieldName(): String |
|
abstract fun floatValue(): Float |
|
abstract fun instantValue(): Instant
Return the JSON itself has no notion of a temporal types, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains an ISO 8601 encoded date and time format such as "2017-04-03T10:25:41Z", which it decodes if found and returns. |
|
abstract fun integerValue(): Int |
|
abstract fun isArray(): Boolean |
|
abstract fun isBoolean(): Boolean |
|
abstract fun isNull(): Boolean |
|
abstract fun isNumber(): Boolean |
|
abstract fun isObject(): Boolean |
|
abstract fun isString(): Boolean |
|
abstract fun longValue(): Long |
|
abstract fun <T : Any> mapTo(type: Class<T>): Tabstract fun <T : Any> mapTo(type: TypeReference<T>): T
Decodes and returns the current value as the specified |
|
abstract fun objectValue(): JsonObject |
|
abstract fun stringValue(): String |
|
abstract fun type(): JsonEventType |
|
abstract fun value(): Any |