change only jsonnode react code example
Example: jsonnode change field value
//to work with a field directly
((ObjectNode)carNode).put("color", "red");
//to work with an object
((ObjectNode)rootNode.get("car")).put("color", "red");
//to work with a field directly
((ObjectNode)carNode).put("color", "red");
//to work with an object
((ObjectNode)rootNode.get("car")).put("color", "red");