JsonNode jsonNode = toJson code example Example: how to set Json node in java ((ObjectNode)jsonNode).put("value", "NO");