nestedTextContains

fun nestedTextContains(jsonNode: JsonNode, contains: String, vararg childNodes: String): Boolean

Check whether a child node contains the specified text.

Return

true if the child node contains the specified text.

Author

Griefed

Parameters

jsonNode

The JsonNode from which to acquire the text for checks.

contains

The text to check with whether the node contains it.

childNodes

The child node(s) from which to acquire the text for contain-checks from, in order.

Throws

if the requested element is not present in the JsonNode.