{
"employeeIdentifiers": [
{
"type": "EmployeeProductID",
"finalIdentifier": "464646"
},
{
"type": "EmployeeDomainID",
"finalIdentifier": "2424225"
}
],
"employeeStatus": [
{
"employeeType": "Employee",
"employeeSUBIdentifiers": [{
"type": "mainID",
"code": "10224242424"
}]
},
{
"employeeType": "Customer",
"employeeSUBIdentifiers": [{
"type": "subordinateID",
"code": "468668686"
},
{
"type": "mainID",
"code": "468668686"
}
]
}
]
}
Above JSON string is coming in the method and I want to replace the text of a node.
In the "employeeStatus" array, if employeeType is 'Employee' and employeeSUBIdentifiers[0].code value should be changed from "10224242424" to "9924242424". How to modify/replace the value using Jackson library?