Create a new Reads
which maps the value produced by this Reads
.
Create a new Reads
which maps the value produced by this Reads
.
The type of the value produced by the new Reads
.
the function applied on the result of the current instance, if successful
Creates a new Reads
, based on this one, which first executes this
Reads
' logic then, if this Reads
resulted in a JsError
, runs
the second Reads
on the JsValue.
Creates a new Reads
, based on this one, which first executes this
Reads
' logic then, if this Reads
resulted in a JsError
, runs
the second Reads
on the JsValue.
The Reads
to run if this one gets a JsError
.
A new Reads
with the updated behavior.
A
Reads
object describes how to decode JSON into a value.Reads
objects are typically provided as implicit values. WhenReads
implicit values are in scope, a program is able to deserialize JSON into values of the right type.The inverse of a
Reads
object is a Writes object, which describes how to encode a value into JSON. If you combine aReads
and aWrites
then you get a Format.