PathStep

dev.constructive.eo.circe.PathStep
enum PathStep

One step on a JsonPrism's flat navigation path — a field name or an array index.

The path walker dispatches on the case to decide which of circe's representations to pierce: JsonObject for named fields, or the underlying Vector[Json] for array indices.

Public so users can read PathStep values off JsonFailure instances exposed by the default JsonPrism / JsonTraversal Ior-bearing surface.

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)

Descend into the named object field.

Descend into the named object field.

Attributes

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

Descend into the array element at zero-based index i.

Descend into the array element at zero-based index i.

Attributes

Source
PathStep.scala