Attributes
- Companion
- class
- Source
- JsonPatch.scala
- Graph
-
- Supertypes
- Self type
-
JsonPatch.type
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Source
- JsonPatch.scala
- Supertypes
- Self type
-
ArrayOp.type
A single patch operation paired with the path to apply it at.
A single patch operation paired with the path to apply it at.
Value parameters
- operation
-
The operation to apply at the path
- path
-
The path indicating where to apply the operation
Attributes
- Source
- JsonPatch.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- JsonPatch.scala
- Supertypes
- Self type
-
ObjectOp.type
Attributes
- Companion
- trait
- Source
- JsonPatch.scala
- Supertypes
- Self type
-
Op.type
Top-level operation type for JSON patches. Each operation describes a change to be applied to a Json value.
Top-level operation type for JSON patches. Each operation describes a change to be applied to a Json value.
Attributes
- Companion
- object
- Source
- JsonPatch.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- JsonPatch.scala
- Supertypes
- Self type
-
PrimitiveOp.type
Attributes
- Companion
- object
- Source
- JsonPatch.scala
- Supertypes
- Known subtypes
-
class NumberDeltaclass StringEdit
Attributes
- Companion
- trait
- Source
- JsonPatch.scala
- Supertypes
- Self type
-
StringOp.type
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete methods
Creates a patch with a single operation at the given path.
Creates a patch with a single operation at the given path.
Value parameters
- operation
-
The operation to apply
- path
-
The path where the operation should be applied
Attributes
- Returns
-
A new patch with the operation at the specified path
- Source
- JsonPatch.scala
Compute the diff between two Json values.
Compute the diff between two Json values.
Returns a JsonPatch that transforms source into target. The patch uses minimal operations:
- NumberDelta for number changes
- StringEdit when more compact than Set
- ArrayEdit with LCS-based Insert/Delete operations
- ObjectEdit for field changes
Value parameters
- source
-
The original Json value
- target
-
The desired Json value
Attributes
- Returns
-
A JsonPatch that transforms source into target
- Source
- JsonPatch.scala
Converts a DynamicPatch to a JsonPatch.
Converts a DynamicPatch to a JsonPatch.
Temporal Deltas and Map Key which are not Strings, fail.
Numeric deltas from DynamicPatch (IntDelta, LongDelta, etc.) are widened to NumberDelta (BigDecimal) since JSON has a single number type.
Value parameters
- patch
-
The DynamicPatch to convert
Attributes
- Returns
-
Either an error for unsupported operations, or the equivalent JsonPatch
- Source
- JsonPatch.scala
Creates a patch with a single operation at the root.
Creates a patch with a single operation at the root.
Value parameters
- operation
-
The operation to apply at the root
Attributes
- Returns
-
A new patch with the operation at the root path
- Source
- JsonPatch.scala
Concrete fields
Empty patch - identity element for composition.
Implicits
Implicits
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala
Attributes
- Source
- JsonPatch.scala