问题 I have this code: static String createRequestJson(String apiKey, String apiSecret) { JsonNodeFactory factory = JsonNodeFactory.instance; ObjectNode root = factory.objectNode(); root.set("auth", factory.objectNode() .put("api_key", apiKey) .put("api_secret", apiSecret)); root.put("wait", true); return root.toString(); } It works, but the code looks more complicated than necessary. In particular, I’d like to get rid of the root variable. static String createRequestJson(String apiKey, String