spray.json.lenses

JsonLenses

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonLenses
  2. ExtraImplicits
  3. JsonPathIntegration
  4. Operations
  5. OptionalFieldOperations
  6. SeqLenses
  7. OptionLenses
  8. ScalarLenses
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. 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
  2. class OptionalFieldBuilder extends AnyRef

  3. trait RichJsValue extends AnyRef

    Definition Classes
    ExtraImplicits

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def *: SeqLens

    Alias for elements

    Alias for elements

    Definition Classes
    SeqLenses
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def allMatching[M[_]](inner: Lens[M]): SeqLens

    Like elements but filters elements where the inner lens doesn't apply

    Like elements but filters elements where the inner lens doesn't apply

    Definition Classes
    SeqLenses
  6. def append(update: Update): Operation

    Definition Classes
    Operations
  7. 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
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. 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
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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.

  12. def element(idx: Int): ScalarLens

    Accesses an element of a JsArray.

    Accesses an element of a JsArray.

    Definition Classes
    ScalarLenses
  13. val elements: SeqLens

    All the elements of a JsArray.

    All the elements of a JsArray.

    Definition Classes
    SeqLenses
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def extract[M[_], T](value: Lens[M])(f: (M[T]) ⇒ Update): Operation

    Definition Classes
    Operations
  17. def field(name: String): ScalarLens

    Accesses a field of a JsObject.

    Accesses a field of a JsObject.

    Definition Classes
    ScalarLenses
  18. 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
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. 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
  21. def fromPath(ast: Path): Lens[Seq]

    Definition Classes
    JsonPathIntegration
  22. 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
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def modify[T](f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation

    The modify operation applies a function on the (converted) value

    The modify operation applies a function on the (converted) value

    Definition Classes
    Operations
  27. def modifyOrDeleteField[T](f: (T) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation

    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.

    Definition Classes
    OptionalFieldOperations
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def optionalField(name: String): OptLens

    Accesses a maybe missing field of a JsObject.

    Accesses a maybe missing field of a JsObject.

    Definition Classes
    OptionLenses
  32. implicit def richString(str: String): RichJsValue

    Definition Classes
    ExtraImplicits
  33. implicit def richValue(v: JsValue): RichJsValue

    Definition Classes
    ExtraImplicits
  34. 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
  35. def setOrUpdateField[T](default: ⇒ T)(f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation

    The setOrUpdateField operation sets or updates an optionalField.

    The setOrUpdateField operation sets or updates an optionalField.

    Definition Classes
    OptionalFieldOperations
  36. implicit def strToField(name: String): ScalarLens

  37. implicit def strToPossiblyOptionalField(sym: Symbol): OptionalFieldBuilder

  38. implicit def strToPossiblyOptionalField(name: String): OptionalFieldBuilder

  39. implicit def symbolToField(sym: Symbol): ScalarLens

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def update(update: Update): Operation

    Definition Classes
    Operations
  43. def updateOptionalField[T](f: (Option[T]) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation

    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.

    Definition Classes
    OptionalFieldOperations
  44. 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
  45. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExtraImplicits

Inherited from JsonPathIntegration

Inherited from Operations

Inherited from OptionalFieldOperations

Inherited from SeqLenses

Inherited from OptionLenses

Inherited from ScalarLenses

Inherited from AnyRef

Inherited from Any

Ungrouped