| Package | Description |
|---|---|
| net.obvj.jsonmerge |
The main package
|
| Modifier and Type | Field and Description |
|---|---|
static JsonMergeOption |
JsonMergeOption.DEFAULT
The default merge option.
|
| Modifier and Type | Method and Description |
|---|---|
JsonMergeOption |
JsonMergeOption.Builder.addAll()
Add all elements of the both JSON documents during the merge of the specified array
path, with no duplication check.
|
JsonMergeOption |
JsonMergeOption.Builder.addDistinctObjectsOnly()
Avoid duplicate objects during the merge of the specified array path (default option).
|
static JsonMergeOption |
JsonMergeOption.distinctKey(String jsonPath,
String key)
Deprecated.
Use
onPath(String) instead |
static JsonMergeOption |
JsonMergeOption.distinctKeys(String jsonPath,
String... keys)
Deprecated.
Use
onPath(String) instead |
JsonMergeOption |
JsonMergeOption.BuilderWithKeys.thenDoADeepMerge()
Tells the algorithm to do a deep merge if two objects identified by the same key(s) are
found in both JSON documents at the path defined for the
JsonMergeOption. |
JsonMergeOption |
JsonMergeOption.BuilderWithKeys.thenPickTheHighestPrecedenceOne()
Tells the algorithm to pick the highest precedence object when two objects identified
by the same key(s) are found in both JSON documents at the path defined for the
JsonMergeOption. |
| Modifier and Type | Method and Description |
|---|---|
T |
JsonMerger.merge(String json1,
String json2,
JsonMergeOption... mergeOptions)
Decodes the specified JSON strings and then combines them.
|
T |
JsonMerger.merge(T json1,
T json2,
JsonMergeOption... mergeOptions)
Combines two JSON documents.
|
Copyright © 2025. All rights reserved.