Packages

sealed abstract class JsBoolean extends JsValue with Product with Serializable

Represents a Json boolean value.

Source
JsValue.scala
Linear Supertypes
Serializable, Product, Equals, JsValue, JsReadable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsBoolean
  2. Serializable
  3. Product
  4. Equals
  5. JsValue
  6. JsReadable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def productArity: Int
    Definition Classes
    Product
  2. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. 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
  2. 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
  3. def canEqual(that: Any): Boolean
    Definition Classes
    JsBoolean → Equals
  4. def equals(that: Any): Boolean
    Definition Classes
    JsBoolean → Equals → AnyRef → Any
  5. def hashCode(): Int
    Definition Classes
    JsBoolean → AnyRef → Any
  6. def productElementName(n: Int): String
    Definition Classes
    Product
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. def productIterator: Iterator[Any]
    Definition Classes
    Product
  9. def productPrefix: String
    Definition Classes
    Product
  10. def toString(): String
    Definition Classes
    JsValue → AnyRef → Any
  11. 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
  12. 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
    JsValueJsReadable
  13. def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
    Definition Classes
    JsValue
  14. val value: Boolean