Package-level declarations

Functions

Link copied to clipboard

Interprets given Json as JsonArray and returns list of Json values.

fun Json.array(key: String): List<Json>

Interprets given Json as JsonObject. Interprets value of given key as JsonArray. Returns list of Json values of the array.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonArray and returns list of Json values.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonArray and returns list of Json.

Link copied to clipboard

Interprets given Json as JsonBoolean and returns boolean value.

Interprets given Json as JsonObject. Interprets value of given key as JsonBoolean. Returns boolean value.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonBoolean and returns boolean value.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonBoolean and returns boolean value of JsonBoolean.

Link copied to clipboard
fun Json.byte(): Byte

Interprets given Json as JsonNumber and returns its value as Byte.

fun Json.byte(key: String): Byte

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Byte.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Byte.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Byte.

Link copied to clipboard

Interprets given Json as JsonNumber and returns its value as Double.

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Double.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Double.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Double.

Link copied to clipboard

Interprets given Json as JsonNumber and returns its value as Float.

fun Json.float(key: String): Float

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Float.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Float.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Float.

Link copied to clipboard
fun Json.int(): Int

Interprets given Json as JsonNumber and returns its value as Int.

fun Json.int(key: String): Int

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Int.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Int.

fun Json.intOrNull(key: String): Int?

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Int.

Link copied to clipboard
fun Json.long(): Long

Interprets given Json as JsonNumber and returns its value as Long.

fun Json.long(key: String): Long

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Long.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Long.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Long.

Link copied to clipboard

Interprets given Json as JsonNumber and returns its value as Number.

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Number.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Number.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Number.

Link copied to clipboard

Interprets given Json as JsonObject.

Interprets given Json as JsonObject and returns value of given key interpreted as JsonObject.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonObject.

Interprets given Json as JsonObject and returns value of given key interpreted as JsonObject or null if key is not exists or value is null.

Link copied to clipboard

Interprets given Json as JsonNumber and returns its value as Short.

fun Json.short(key: String): Short

Interprets given Json as JsonObject. Interprets value of given key as JsonNumber. Returns its value as Short.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonNumber and returns its value as Short.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonNumber and returns its value as Short.

Link copied to clipboard

Interprets given Json as JsonString and returns string value.

Interprets given Json as JsonObject. Interprets value of given key as JsonString. Returns string value.

Link copied to clipboard

Returns null if provided Json is JsonNull or interprets given Json as JsonString and returns int value.

Interprets given Json as JsonObject. Returns null if given key is not exists or value of given key is null. Otherwise, interprets value of given key as JsonString and returns string value of JsonString.