booleanOrNull

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

Throws

if JSON structure does not match expected type


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.

Throws

if JSON structure does not match expected type