kotlinx-serialization / kotlinx.serialization.json / boolean

boolean

(common, js, jvm, native) val JsonElement.boolean: Boolean

Convenience method, returns content of current element as Boolean

Exceptions

JsonException - if current element is not a JsonPrimitive

IllegalStateException - if current element is JsonPrimitive, but it is not a valid boolean value