Class

eu.shiftforward.apso.json.Implicits

ApsoJsonJsValue

Related Doc: package Implicits

Permalink

implicit final class ApsoJsonJsValue extends AnyVal

Implicit class that provides new methods for JsValues.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApsoJsonJsValue
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ApsoJsonJsValue(json: JsValue)

    Permalink

    json

    the JsValue to which the new methods are provided.

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. val json: JsValue

    Permalink

    the JsValue to which the new methods are provided.

  8. def merge(other: JsValue, failOnConflict: Boolean = true): JsValue

    Permalink

    Merges two JsValues if they are JsArrays or JsObjects.

    Merges two JsValues if they are JsArrays or JsObjects. If they are JsObjects, a deep merge is performed.

    When merging JsObjects, if failOnConflict is false and conflicts exists between terminal values, these are resolved by using the values of the second JSON. If failOnConflict is true, an IllegalArgumentException is thrown.

    other

    the other JSON value to merge

    failOnConflict

    whether to fail or resolve conflicts by using the values on the other JSON.

    returns

    the resulting merged JsObject

  9. def toString(): String

    Permalink
    Definition Classes
    Any
  10. def toValue: Any

    Permalink

    Unwraps a JSON value.

    Unwraps a JSON value. If the given value is a JSON string, number or boolean, a String, BigDecimal or Boolean is returned respectively. If the given value is a JSON array or object, a List[Any] or Map[String, Any] is returned respectively, where each of the values is recursively unwrapped. If the given value is a JSON null, null is returned.

    returns

    the unwrapped JSON value.

Inherited from AnyVal

Inherited from Any

Ungrouped