Given a parent JsValue extracts and converts a JsValue into a value of
type T
or throws an exception.
Lifts a predicate for a converted value for this lens up to the parent level.
Lifts a predicate for a converted value for this lens up to the parent level. The returned predicate will return false for values which fail to read.
Given a parent JsValue, tries to extract the child value.
Given a parent JsValue, tries to extract the child value.
Right(value)
if the lens read succeeds. Left(error)
if the lens read fails.
Given a parent JsValue extracts and tries to convert the JsValue into
a value of type T
The read lens can extract child values out of a JsValue hierarchy. A read lens is parameterized with a type constructor. This allows to extracts not only scalar values but also sequences or optional values.