byte

fun Json.byte(): Byte

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

Throws

if JSON structure does not match expected type.


fun Json.byte(key: String): Byte

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

Throws

if JSON structure does not match expected type