trait JsReadable extends Any
A trait representing a Json node which can be read as an arbitrary type A using a Reads[A]
- Source
- JsReadable.scala
- Alphabetic
- By Inheritance
- JsReadable
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
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.
-
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.
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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]