Answers for "jsonnode insert node"

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");
Posted by: Guest on December-15-2020
0

how to set Json node in java

((ObjectNode)jsonNode).put("value", "NO");
Posted by: Guest on December-04-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language