play.api.libs.json

JsSuccess

case class JsSuccess[T](value: T, path: JsPath = ...) extends JsResult[T] with Product with Serializable

The result for a successful parsing.

Linear Supertypes
Serializable, Serializable, Product, Equals, JsResult[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsSuccess
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. JsResult
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsSuccess(value: T, path: JsPath = ...)

Type Members

  1. final class WithFilter extends AnyRef

    Definition Classes
    JsResult

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 asEither: Either[Seq[(JsPath, Seq[JsonValidationError])], T]

    Returns either the result errors (at Left), or the successful value (at Right).

    Returns either the result errors (at Left), or the successful value (at Right).

    Definition Classes
    JsSuccessJsResult
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asOpt: Option[T]

    Transforms this result either Some option with the successful value, or as None in case of JSON error.

    Transforms this result either Some option with the successful value, or as None in case of JSON error.

    Definition Classes
    JsSuccessJsResult
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collect[B](otherwise: JsonValidationError)(p: PartialFunction[T, B]): JsResult[B]

    Definition Classes
    JsResult
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def filter(otherwise: JsError)(p: (T) ⇒ Boolean): JsResult[T]

    Definition Classes
    JsResult
  13. def filter(p: (T) ⇒ Boolean): JsResult[T]

    Definition Classes
    JsResult
  14. def filterNot(p: (T) ⇒ Boolean): JsResult[T]

    Definition Classes
    JsResult
  15. def filterNot(error: JsError)(p: (T) ⇒ Boolean): JsResult[T]

    Definition Classes
    JsResult
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMap[U](f: (T) ⇒ JsResult[U]): JsResult[U]

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsSuccessJsResult
  18. def fold[U](invalid: (Seq[(JsPath, Seq[JsonValidationError])]) ⇒ U, valid: (T) ⇒ U): U

    Either applies the invalid function if this result is an error, or applies the valid function on the successful value.

    Either applies the invalid function if this result is an error, or applies the valid function on the successful value.

    Definition Classes
    JsSuccessJsResult
  19. def foreach(f: (T) ⇒ Unit): Unit

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsSuccessJsResult
  20. def get: T

    Not recommended

    Not recommended

    Definition Classes
    JsSuccessJsResult
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getOrElse[U >: T](t: ⇒ U): U

    Either returns the successful value, or the value from t.

    Either returns the successful value, or the value from t.

    Definition Classes
    JsSuccessJsResult
  23. val isError: Boolean

    Definition Classes
    JsSuccessJsResult
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. val isSuccess: Boolean

    Definition Classes
    JsSuccessJsResult
  26. def map[U](f: (T) ⇒ U): JsResult[U]

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsSuccessJsResult
  27. final def ne(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def orElse[U >: T](t: ⇒ JsResult[U]): JsResult[U]

    Either returns this result if successful, or the result from t.

    Either returns this result if successful, or the result from t.

    Definition Classes
    JsSuccessJsResult
  31. val path: JsPath

  32. def recover[U >: T](errManager: PartialFunction[JsError, U]): JsResult[U]

    If this result is not successful, recovers the errors with the given function.

    If this result is not successful, recovers the errors with the given function.

    Definition Classes
    JsSuccessJsResult
  33. def recoverTotal[U >: T](errManager: (JsError) ⇒ U): U

    If this result is not successful, recovers the errors with the given function.

    If this result is not successful, recovers the errors with the given function.

    Definition Classes
    JsSuccessJsResult
  34. def repath(path: JsPath): JsResult[T]

    Updates the JSON path

    Updates the JSON path

    Definition Classes
    JsSuccessJsResult
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. val value: T

  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def withFilter(p: (T) ⇒ Boolean): WithFilter

    Definition Classes
    JsResult

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsResult[T]

Inherited from AnyRef

Inherited from Any

Ungrouped