JsDefined
Wrapper for JsValue to represent an existing Json value.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait JsLookupResulttrait JsReadableclass AnyValtrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.
Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.
Attributes
- Inherited from:
- JsReadable
Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None
Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None
Attributes
- Returns
-
Some[T] if it succeeds, None if it fails.
- Inherited from:
- JsReadable
Attributes
- Inherited from:
- JsLookupResult
Attributes
- Inherited from:
- JsLookupResult
Attributes
- Inherited from:
- JsLookupResult
Attributes
- Inherited from:
- JsLookupResult
If this result is defined return this
. Otherwise return alternative
.
If this result is defined return this
. Otherwise return alternative
.
Attributes
- Inherited from:
- JsLookupResult
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- JsLookupResult
Tries to convert the node into a JsValue
Transforms this node into a JsResult using provided Json transformer Reads[JsValue]
Transforms this node into a JsResult using provided Json transformer Reads[JsValue]
Attributes
- Inherited from:
- JsReadable
Tries to convert the node into a JsResult[T] (Success or Error). An implicit Reads[T] must be defined.
Tries to convert the node into a JsResult[T] (Success or Error). An implicit Reads[T] must be defined.
Attributes
- Inherited from:
- JsLookupResult
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
.
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
.
Attributes
- Inherited from:
- JsLookupResult