play.api.libs.json

JsUndefined

final class JsUndefined extends JsLookupResult

Represent a missing Json value.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsUndefined
  2. JsLookupResult
  3. JsReadable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsUndefined(err: ⇒ String)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. 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
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. 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
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def error: String

  13. def get: JsValue

    Definition Classes
    JsLookupResult
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def getOrElse(v: ⇒ JsValue): JsValue

    Definition Classes
    JsLookupResult
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def isDefined: Boolean

    Definition Classes
    JsLookupResult
  18. def isEmpty: Boolean

    Definition Classes
    JsLookupResult
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. def orElse(alternative: ⇒ JsLookupResult): JsLookupResult

    If this result is defined return this.

    If this result is defined return this. Otherwise return alternative.

    Definition Classes
    JsLookupResult
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toEither: Either[JsonValidationError, JsValue]

    Definition Classes
    JsLookupResult
  26. def toOption: Option[JsValue]

    Tries to convert the node into a JsValue

    Tries to convert the node into a JsValue

    Definition Classes
    JsLookupResult
  27. def toString(): String

    Definition Classes
    JsUndefined → AnyRef → Any
  28. 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
  29. 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
    JsLookupResultJsReadable
  30. 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
  31. def validationError: JsonValidationError

  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from JsLookupResult

Inherited from JsReadable

Inherited from AnyRef

Inherited from Any

Ungrouped