I need to change a JSON attribute\'s value in Java, I can get the value properly but I couldn\'t modify the JSON.
here is the code below
JsonNode
I think you can just cast to ObjectNode and use put method. Like this
put
ObjectNode o = (ObjectNode) jsonNode; o.put("value", "NO");