play.api.libs.json.JsResult
See theJsResult companion trait
object JsResult
Attributes
Members list
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Returns a scala.util.Try as JSON validation.
Returns a scala.util.Try as JSON validation.
Type parameters
- T
-
the type for the parsing
Value parameters
- err
-
the function to be applied for scala.util.Failure
- result
-
the result
Attributes
Returns a JSON validation as a scala.util.Try.
Returns a JSON validation as a scala.util.Try.
Type parameters
- T
-
the type for the parsing
Value parameters
- err
-
the function to be applied if the results is an error
import scala.concurrent.Future import play.api.libs.json.JsResult def toFuture[T](res: JsResult[T]): Future[T] = Future.fromTry(JsResult.toTry(res))
- result
-
the JSON validation result
Attributes
Implicits
Implicits
In this article