Add a property to a json string with jackson json
Try casting your JsonNode
to an com.fasterxml.jackson.databind.node.ObjectNode
and then calling put set
(or replace
) on it.
Try casting your JsonNode
to an com.fasterxml.jackson.databind.node.ObjectNode
and then calling put set
(or replace
) on it.