containsKeys

fun JsonElement.containsKeys(vararg keys: String): Boolean

Checks whether this JsonElement contains the nested path specified by keys.

Extension function on JsonElement. Each key may contain dots to traverse multiple levels.

Return

true if all keys exist along the path

Parameters

keys

one or more dot-separated key paths