select

fun Optional<JsonElement, JsonElement>.select(selector: String): Optional<JsonElement, JsonElement>(source)
fun Traversal<JsonElement, JsonElement>.select(selector: String): Traversal<JsonElement, JsonElement>(source)

Select value at selector. The following syntax is supported for selector:

  • without square brackets: select the property with that name,

  • ['field']: select the property with that name,

  • [i], where i is a number: select the index in an array.