I know how to add a property using jackson with ObjectNode.put()
but is there a way to insert the property at a specific position?
For example if I have this JsonNode:
{
"property1":"val1",
"property2":"val2",
"property3":"val3"
}
What I want is:
{
"property1":"val1",
"property4":"val4",
"property2":"val2",
"property3":"val3"
}
How can I achieve that with Jackson?