How can I create a json array like the example below using jackson.
I tried using ObjectMapper, but this does not seem correct.
try (Director
initializing JSON object as singleton instance, and building it:
ObjectNode node = JsonNodeFactory.instance.objectNode(); // initializing node.put("x", x); // building
PS: to println use node.toString().
node.toString()