java jsonnode change fieldname 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");