I have this file (example.json):
{
"messages" : [ "msg 1", "msg 2", "msg 3" ],
}
Then I create a JsonNode like this:
BufferedReader fileReader = new BufferedReader(new FileReader("example.json"));
JsonNode rootNode = mapper.readTree(fileReader);
How do I change the array element value from "msg 1" to "msg 1A" without removing the element and adding a new one with value "msg 1A"?