nestedTextMatches

fun nestedTextMatches(jsonNode: JsonNode, matches: Regex, vararg childNodes: String): Boolean

Check whether the text in specified child node(s) matches the specified text.

Return

true if the texts match.

Author

Griefed

Parameters

jsonNode

The JsonNode from which to acquire the text.

matches

The text to check for a match.

childNodes

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

Throws

if the requested element is not present in the JsonNode.