Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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");
 
PREVIOUS NEXT
Tagged: #jsonnode #change #field
ADD COMMENT
Topic
Name
4+5 =