Trait/Object

play.api.libs.json

JsLookupResult

Related Docs: object JsLookupResult | package json

Permalink

sealed trait JsLookupResult extends JsReadable

Source
JsLookup.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsLookupResult
  2. JsReadable
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def as[T](implicit fjs: Reads[T]): T

    Permalink

    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
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asOpt[T](implicit fjs: Reads[T]): Option[T]

    Permalink

    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
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  8. def get: JsValue

    Permalink
  9. def getOrElse(v: ⇒ JsValue): JsValue

    Permalink
  10. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. def toEither: Either[ValidationError, JsValue]

    Permalink
  13. def toOption: Option[JsValue]

    Permalink

    Tries to convert the node into a JsValue

  14. def toString(): String

    Permalink
    Definition Classes
    Any
  15. def transform[A <: JsValue](rds: Reads[A]): JsResult[A]

    Permalink

    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
  16. def validate[A](implicit rds: Reads[A]): JsResult[A]

    Permalink

    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
    JsLookupResultJsReadable
  17. def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]

    Permalink

    If this result contains JsNull or is undefined, returns JsSuccess(None).

    If this result contains JsNull or is undefined, returns JsSuccess(None). Otherwise returns the result of validating as an A and wrapping the result in a Some.

Inherited from JsReadable

Inherited from Any

Ungrouped