the JsValue
to which the new methods are provided.
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.
the other JSON value to merge
whether to fail or resolve conflicts by using the values on the other
JSON.
the resulting merged JsObject
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.
the unwrapped JSON value.
Implicit class that provides new methods for
JsValues
.