Returns either the result errors (at Left
),
or the successful value (at Right
).
Transforms this result either Some
option with the successful value,
or as None
in case of JSON error.
If this result is successful, applies the function f
on the parsed value.
Either applies the invalid
function if this result is an error,
or applies the valid
function on the successful value.
If this result is successful, applies the function f
on the parsed value.
Not recommended
Either returns the successful value, or the value from t
.
If this result is successful, applies the function f
on the parsed value.
Either returns this result if successful, or the result from t
.
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.
Updates the JSON path