sealed trait JsLookupResult extends JsReadable
- Alphabetic
- By Inheritance
- JsLookupResult
- JsReadable
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
as[T](implicit fjs: Reads[T]): T
Tries to convert the node into a T, throwing an exception if it can't.
Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.
- Definition Classes
- JsReadable
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOpt[T](implicit fjs: Reads[T]): Option[T]
Tries to convert the node into a T.
Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None
- returns
Some[T] if it succeeds, None if it fails.
- Definition Classes
- JsReadable
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
- def get: JsValue
- def getOrElse(v: ⇒ JsValue): JsValue
-
def
hashCode(): Int
- Definition Classes
- Any
- def isDefined: Boolean
- def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
orElse(alternative: ⇒ JsLookupResult): JsLookupResult
If this result is defined return
this
.If this result is defined return
this
. Otherwise returnalternative
. - def toEither: Either[JsonValidationError, JsValue]
-
def
toOption: Option[JsValue]
Tries to convert the node into a JsValue
-
def
toString(): String
- Definition Classes
- Any
-
def
transform[A <: JsValue](rds: Reads[A]): JsResult[A]
Transforms this node into a JsResult using provided Json transformer Reads[JsValue]
Transforms this node into a JsResult using provided Json transformer Reads[JsValue]
- Definition Classes
- JsReadable
-
def
validate[A](implicit rds: Reads[A]): JsResult[A]
Tries to convert the node into a JsResult[T] (Success or Error).
Tries to convert the node into a JsResult[T] (Success or Error). An implicit Reads[T] must be defined.
- Definition Classes
- JsLookupResult → JsReadable
-
def
validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
If this result contains
JsNull
or is undefined, returnsJsSuccess(None)
.If this result contains
JsNull
or is undefined, returnsJsSuccess(None)
. Otherwise returns the result of validating as anA
and wrapping the result in aSome
.