Update Json Node (Create JsonNode Using Java Class and put new Values to that)

 

Create JsonNode Using java model class

JsonNode layoutConfigurationNode = getNode(requestJson, jsonNodeName);

Put New attribute to that Json Object

((ObjectNode) layoutConfigurationNode).put("Key1", <value>);

((ObjectNode) layoutConfigurationNode).put("Key2", <value>);

Post a Comment

Previous Post Next Post