JsBoolean

sealed abstract class JsBoolean(val value: Boolean) extends JsValue with Product with Serializable

Represents a Json boolean value.

Companion
object
trait Serializable
trait Product
trait Equals
trait JsValue
class Object
trait Matchable
class Any
object JsFalse
object JsTrue

Value members

Concrete methods

def canEqual(that: Any): Boolean
override def equals(that: Any): Boolean
Definition Classes
Equals -> Any
override def hashCode: Int
Definition Classes
Any

Deprecated methods

@deprecated("No longer a case class", "2.6.0")
def copy(value: Boolean): JsBoolean
Deprecated
@deprecated("No longer a case class", "2.6.0")
def productElement(n: Int): Any
Deprecated

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 productElementName(n: Int): String
Inherited from
Product
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def productPrefix: String
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

Concrete fields

val value: Boolean

Deprecated fields

@deprecated("No longer a case class", "2.6.0")
val productArity: Int
Deprecated