Attributes
- Companion
- trait
- Source
- MergeStrategy.scala
- Graph
-
- Supertypes
- Self type
-
MergeStrategy.type
Members list
Type members
Classlikes
Deep merge: recursively merge all objects and arrays. Objects merge by key, arrays merge by index (not concatenation). At leaves, right value wins.
Deep merge: recursively merge all objects and arrays. Objects merge by key, arrays merge by index (not concatenation). At leaves, right value wins.
Attributes
- Source
- MergeStrategy.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MergeStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
Auto.type
Concatenate arrays instead of merging by index. Objects are still merged by key recursively.
Concatenate arrays instead of merging by index. Objects are still merged by key recursively.
Attributes
- Source
- MergeStrategy.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MergeStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
Concat.type
Custom merge strategy with full control over recursion and merging.
Custom merge strategy with full control over recursion and merging.
Value parameters
- f
-
A function that takes (path, left, right) and returns the merged JSON value
- r
-
A function that determines whether to recurse into containers (default: always recurse)
Attributes
- Source
- MergeStrategy.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MergeStrategyclass Objecttrait Matchableclass AnyShow all
Complete replacement: no merging at any level. Right value completely replaces left value.
Complete replacement: no merging at any level. Right value completely replaces left value.
Attributes
- Source
- MergeStrategy.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MergeStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
Replace.type
Shallow merge: merge only at the root level, no recursion. Top-level object keys or array indices are merged, but nested containers are replaced (right wins).
Shallow merge: merge only at the root level, no recursion. Top-level object keys or array indices are merged, but nested containers are replaced (right wins).
Attributes
- Source
- MergeStrategy.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MergeStrategyclass Objecttrait Matchableclass AnyShow all
- Self type
-
Shallow.type
Inherited and Abstract types
The names of the product elements.
The name of the type.