FailedCursor

final class FailedCursor(lastCursor: HCursor, lastOp: CursorOp) extends ACursor
class ACursor
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

Indicates whether the last operation failed because the type of the focus was wrong.

Indicates whether the last operation failed because the type of the focus was wrong.

Source:
FailedCursor.scala
override def index: Option[Int]
Definition Classes
Source:
FailedCursor.scala
override def key: Option[String]
Definition Classes
Source:
FailedCursor.scala

Indicates whether the last operation failed because of a missing field.

Indicates whether the last operation failed because of a missing field.

Source:
FailedCursor.scala
override def root: HCursor
Definition Classes
Source:
FailedCursor.scala
def withFocusM[F[_]](f: Json => F[Json])(implicit F: Applicative[F]): F[ACursor]

Inherited methods

final def as[A](implicit d: Decoder[A]): Result[A]

Attempt to decode the focus as an A.

Attempt to decode the focus as an A.

Inherited from:
ACursor
Source:
ACursor.scala
final def failed: Boolean

Indicate whether this cursor represents the result of an unsuccessful operation.

Indicate whether this cursor represents the result of an unsuccessful operation.

Inherited from:
ACursor
Source:
ACursor.scala
final def get[A](k: String)(implicit d: Decoder[A]): Result[A]

Attempt to decode the value at the given key in a JSON object as an A.

Attempt to decode the value at the given key in a JSON object as an A.

Inherited from:
ACursor
Source:
ACursor.scala
final def getOrElse[A](k: String)(fallback: => A)(implicit d: Decoder[A]): Result[A]

Attempt to decode the value at the given key in a JSON object as an A. If the field k is missing, then use the fallback instead.

Attempt to decode the value at the given key in a JSON object as an A. If the field k is missing, then use the fallback instead.

Inherited from:
ACursor
Source:
ACursor.scala
final def history: List[CursorOp]

The operations that have been performed so far.

The operations that have been performed so far.

Inherited from:
ACursor
Source:
ACursor.scala
final def pathString: String

Creates a JavaScript-style path string, e.g. ".foo.bar[3]".

Creates a JavaScript-style path string, e.g. ".foo.bar[3]".

Inherited from:
ACursor
Source:
ACursor.scala
final def replay(history: List[CursorOp]): ACursor

Replay history (a list of operations in reverse "chronological" order) against this cursor.

Replay history (a list of operations in reverse "chronological" order) against this cursor.

Inherited from:
ACursor
Source:
ACursor.scala
final def replayOne(op: CursorOp): ACursor

Replay an operation against this cursor.

Replay an operation against this cursor.

Inherited from:
ACursor
Source:
ACursor.scala
final def set(j: Json): ACursor

Replace the focus.

Replace the focus.

Inherited from:
ACursor
Source:
ACursor.scala