selectEvery

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

Select values 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,

  • *: select all the fields or indices,

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

  • [i,j,...] where i,j,... are numbers: select the indices in an array,

  • [start:end]: select the indices from start to (but not including) end,

  • [start:]: select the indices from start to the end of the array.