JsString

case class JsString(value: String) extends JsValue

Represent a Json string value.

trait Serializable
trait Product
trait Equals
trait JsValue
class Object
trait Matchable
class Any

Value members

Inherited methods

def as[T](implicit fjs: Reads[T]): T

Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

Inherited from
JsReadable
def asOpt[T](implicit fjs: Reads[T]): Option[T]

Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None

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.

Inherited from
JsReadable
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def toString: String
Definition Classes
JsValue -> Any
Inherited from
JsValue
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]

Inherited from
JsReadable
def validate[A](implicit rds: Reads[A]): JsResult[A]
Inherited from
JsValue
def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
Inherited from
JsValue