-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Ability to deep merge two JsonNode
objects, and/or to deserialize a stream by updating an existing JsonNode
rather than creating a new one.
Usage example
var mapper = new ObjectMapper();
var node1 = mapper.readTree("{\"root\":{\"a\":\"aaa\",\"foo\":\"hello\"}}");
var node2 = mapper.readerForUpdating(node1)
.readTree("{\"root\":{\"b\":\"bbb\",\"foo\":\"goodbye\"}}");
Additional context
#584 implies that this capability exists, but it does not appear to be functioning propery for JsonNode
. There also doesn't seem to be a way to specify shallow or deep merge using the tree API readerForUpdating()
Metadata
Metadata
Assignees
Labels
No labels