path

fun Optional<JsonElement, JsonElement>.path(path: String, fieldDelimiter: String = ".", indexDelimiter: String = "["): Optional<JsonElement, JsonElement>(source)
fun Traversal<JsonElement, JsonElement>.path(path: String, fieldDelimiter: String = ".", indexDelimiter: String = "["): Traversal<JsonElement, JsonElement>(source)

Select path with dot (.) or bracket (i) notation

JsonPath.path("addresses[0].street.name")