A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/libs/json/JsDefined.html below:

JsDefined - play.api.libs.json.JsDefined

  • final def !=(arg0: Any): Boolean
  • final def ##(): Int
  • final def ==(arg0: Any): Boolean
  • 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
  • final def asInstanceOf[T0]: T0
  • 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
  • def get: JsValue
  • def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  • def getOrElse(v: ⇒ JsValue): JsValue
  • final def isInstanceOf[T0]: Boolean
  • def toEither: Either[ValidationError, JsValue]
  • def toOption: Option[JsValue]

    Tries to convert the node into a JsValue

    Tries to convert the node into a JsValue

    Definition Classes
    JsLookupResult
  • 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
  • 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
    JsLookupResult → JsReadable
  • def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]

    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.

    Definition Classes
    JsLookupResult
  • val value: JsValue

  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4