A MapOperation is one that expect an old value to be available.
A MapOperation is one that expect an old value to be available.
Alias for elements
Alias for elements
Like elements but filters elements where the inner lens doesn't apply
Like elements but filters elements where the inner lens doesn't apply
A lens which leaves JsArray as is but transforms any other kind of JsValue into a singleton JsArray with that value as single element.
A lens which leaves JsArray as is but transforms any other kind of JsValue into a singleton JsArray with that value as single element.
The lens which just converts another Lens into one of a Seq value.
The lens which just converts another Lens into one of a Seq value.
The lens which combines an outer lens with an inner.
Accesses an element of a JsArray.
Accesses an element of a JsArray.
All the elements of a JsArray.
All the elements of a JsArray.
Accesses a field of a JsObject.
Accesses a field of a JsObject.
All the values of a JsArray which match the predicate.
All the values of a JsArray which match the predicate.
Operates on the first element of an JsArray which matches the predicate.
Operates on the first element of an JsArray which matches the predicate.
Create a Lens from a json-path expression.
Create a Lens from a json-path expression.
The modify operation applies a function on the (converted) value
The modify operation applies a function on the (converted) value
The modifyOrDeleteField operation works together with the optionalField lens.
The modifyOrDeleteField operation works together with the optionalField lens.
The passed function is called for every existing field. If the function returns
Some(value), this will become the new value. If the function returns None the
field will be deleted.
Accesses a maybe missing field of a JsObject.
Accesses a maybe missing field of a JsObject.
The set operation sets or creates a value.
The set operation sets or creates a value.
The setOrUpdateField operation sets or updates an optionalField.
The setOrUpdateField operation sets or updates an optionalField.
The updateOptionalField operation works together with the optionalField lens.
The updateOptionalField operation works together with the optionalField lens. It allows
to a) create a previously missing field b) update an existing field value c) remove an existing
field d) ignore a missing field.
The identity lens which operates on the current element itself
The identity lens which operates on the current element itself
An aggregate option to import all of the functionality of JsonLenses with one import.