I have the below ObjectNode.
handlerObjectNode -> {"Info":{"Brand":{"BrandName":"TOP OF THE WORLD"}}}
I have another ObjectNode in the following format.
fieldObjects -> {"Description":"REGULAR BR"}
How can I create the below ObjectNode from the above two?
{
"Info": {
"Brand": {
"BrandName": "TOP OF THE WORLD"
}
"Description": "REGULAR BR"
}
}
I tried the below code.
handlerObjectNode.setAll(fieldObjects);
But it results in the following ObjectNode.
{
"Info": {
"Brand": {
"BrandName": "TOP OF THE WORLD"
}
},
"Description": "REGULAR BR"
}
I am using the com.fasterxml.jackson.databind.node.ObjectNode from Jackson. Any help would be much appreciated.