jsonnode set value code example
Example 1: 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");
Example 2: how to set Json node in java
((ObjectNode)jsonNode).put("value", "NO");