PathStep

dev.constructive.eo.jsoniter.PathStep
enum PathStep

One step of a JSON path expression:

  • .field — descend into an object property by exact name (powers JsoniterPrism).
  • [i] — descend into an array element by zero-based index (powers JsoniterPrism).
  • [*] — fan out across every element of the current array (powers JsoniterTraversal).

Filters / recursive descent are out of scope.

Attributes

Source
PathStep.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Field(name: String)

.field — descend into an object property by exact name.

.field — descend into an object property by exact name.

Attributes

Source
PathStep.scala
final case class Index(i: Int)

[i] — descend into an array element by zero-based index.

[i] — descend into an array element by zero-based index.

Attributes

Source
PathStep.scala
case Wildcard extends PathStep

[*] — fan out: when scanning, this step expands the current array into one branch per element, each continuing with the remaining path. Only meaningful inside a multi-focus traversal — JsoniterPrism rejects paths containing this step at construction.

[*] — fan out: when scanning, this step expands the current array into one branch per element, each continuing with the remaining path. Only meaningful inside a multi-focus traversal — JsoniterPrism rejects paths containing this step at construction.

Attributes

Source
PathStep.scala