ModelNode node = new ModelNode(); node.get("name").set("John"); node.get("age").set(25); node.get("city").set("New York");
ModelNode node = new ModelNode(); node.get("name").set("John"); node.get("age").set(25); node.get("city").set("New York"); System.out.println(node.toJSONString(false));In this example, the toJSONString() method is used to describe the data node as a JSON string. The 'false' parameter indicates that no indentation should be added to the output. This library belongs to the JBoss Community.