float

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

Throws

if JSON structure does not match expected type.


fun Json.float(key: String): Float

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

Throws

if JSON structure does not match expected type