Represents a position within a JSON structure, comprising a value under the cursor (the focus) and a context.
Data type representing the position of the cursor before the failed action, with a message describing the action that failed.
Typeclass for a data structure representing an AST for JSON
Represents a transition, which may succeed or fail, from a cursor, to an updated cursor together with a value: JCursor => Option[(JCursor, A)]
Represents a transition, which may succeed or fail, from a cursor, to an updated cursor together with a value: JCursor => Option[(JCursor, A)]
Generally, movement commands return the new focus as the value, for convenience, e.g.
for (results <- field("results")) ...
But you may also program entirely in imperative commands, ignoring the returned values, e.g.
for (_ <- field("uselessData"); _ <- deleteGoUp) yield ()
In that case, consider instead:
field("uselessData") >> deleteGoUp