Add a property to a json string with jackson json Add a property to a json string with jackson json json json

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.