getNestedBoolean

fun getNestedBoolean(jsonNode: JsonNode, vararg childNodes: String): Boolean

Get the boolean value from the nested child node(s).

Return

true or false, based on the boolean in the specified child node(s).

Author

Griefed

Parameters

jsonNode

The JsonNode from which to acquire the boolean.

childNodes

The nested nodes in the JsonNode to acquire the boolean from, in order.

Throws

if the specified node(s) contain no boolean or the requested value is not a parsable boolean value.

if the requested element is not present in the JsonNode.