object JsonLenses extends ScalarLenses with OptionLenses with SeqLenses with Operations with JsonPathIntegration with ExtraImplicits
An aggregate option to import all of the functionality of JsonLenses with one import.
- Alphabetic
- By Inheritance
- JsonLenses
- ExtraImplicits
- JsonPathIntegration
- Operations
- OptionalFieldOperations
- SeqLenses
- OptionLenses
- ScalarLenses
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
RichJsValue
extends AnyRef
- Definition Classes
- ExtraImplicits
- class OptionalFieldBuilder extends AnyRef
-
trait
MapOperation
extends Operation
A MapOperation is one that expect an old value to be available.
A MapOperation is one that expect an old value to be available.
- Definition Classes
- Operations
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*: SeqLens
Alias for
elementsAlias for
elements- Definition Classes
- SeqLenses
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
allMatching[M[_]](inner: Lens[M]): SeqLens
Like
elementsbut filters elements where theinnerlens doesn't applyLike
elementsbut filters elements where theinnerlens doesn't apply- Definition Classes
- SeqLenses
-
def
append(update: Update): Operation
- Definition Classes
- Operations
-
val
arrayOrSingletonAsArray: ScalarLens
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.
- Definition Classes
- ScalarLenses
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
asSeq: SeqLens
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.
- Definition Classes
- SeqLenses
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
combine[M[_], M2[_], R[_]](outer: Lens[M], inner: Lens[M2])(implicit ev: Join[M2, M, R]): Lens[R]
The lens which combines an outer lens with an inner.
-
def
element(idx: Int): ScalarLens
Accesses an element of a JsArray.
Accesses an element of a JsArray.
- Definition Classes
- ScalarLenses
-
val
elements: SeqLens
All the elements of a JsArray.
All the elements of a JsArray.
- Definition Classes
- SeqLenses
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extract[M[_], T](value: Lens[M])(f: (M[T]) ⇒ Update): Operation
- Definition Classes
- Operations
-
def
field(name: String): ScalarLens
Accesses a field of a JsObject.
Accesses a field of a JsObject.
- Definition Classes
- ScalarLenses
-
def
filter(pred: JsPred): SeqLens
All the values of a JsArray which match the predicate.
All the values of a JsArray which match the predicate.
- Definition Classes
- SeqLenses
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(pred: JsPred): OptLens
Operates on the first element of an JsArray which matches the predicate.
Operates on the first element of an JsArray which matches the predicate.
- Definition Classes
- OptionLenses
-
def
fromPath(ast: Path): Lens[Seq]
- Definition Classes
- JsonPathIntegration
-
def
fromPath(path: String): Lens[Seq]
Create a Lens from a json-path expression.
Create a Lens from a json-path expression.
- Definition Classes
- JsonPathIntegration
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
modify[T](f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
modifyoperation applies a function on the (converted) valueThe
modifyoperation applies a function on the (converted) value- Definition Classes
- Operations
-
def
modifyOrDeleteField[T](f: (T) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
modifyOrDeleteFieldoperation works together with theoptionalFieldlens.The
modifyOrDeleteFieldoperation works together with theoptionalFieldlens. The passed function is called for every existing field. If the function returnsSome(value), this will become the new value. If the function returnsNonethe field will be deleted.- Definition Classes
- OptionalFieldOperations
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
optionalField(name: String): OptLens
Accesses a maybe missing field of a JsObject.
Accesses a maybe missing field of a JsObject.
- Definition Classes
- OptionLenses
-
implicit
def
richString(str: String): RichJsValue
- Definition Classes
- ExtraImplicits
-
implicit
def
richValue(v: JsValue): RichJsValue
- Definition Classes
- ExtraImplicits
-
def
set[T](t: ⇒ T)(implicit arg0: JsonWriter[T]): Operation
The set operation sets or creates a value.
The set operation sets or creates a value.
- Definition Classes
- Operations
-
def
setOrUpdateField[T](default: ⇒ T)(f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
setOrUpdateFieldoperation sets or updates an optionalField.The
setOrUpdateFieldoperation sets or updates an optionalField.- Definition Classes
- OptionalFieldOperations
- implicit def strToField(name: String): ScalarLens
- implicit def strToPossiblyOptionalField(sym: Symbol): OptionalFieldBuilder
- implicit def strToPossiblyOptionalField(name: String): OptionalFieldBuilder
- implicit def symbolToField(sym: Symbol): ScalarLens
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(update: Update): Operation
- Definition Classes
- Operations
-
def
updateOptionalField[T](f: (Option[T]) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
updateOptionalFieldoperation works together with theoptionalFieldlens.The
updateOptionalFieldoperation works together with theoptionalFieldlens. 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.- Definition Classes
- OptionalFieldOperations
-
val
value: ScalarLens
The identity lens which operates on the current element itself
The identity lens which operates on the current element itself
- Definition Classes
- ScalarLenses
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )