/** * Specifies the format of the content and returns the handle * as a fluent convenience. * @param format the format of the content * @return this handle */ public JacksonHandle withFormat(Format format) { setFormat(format); return this; }
JsonNode jn = objM.readTree(new String("{\"animal\":\"dog\", \"says\":\"woof\"}")); jh.set(jn); jh.setFormat(Format.JSON);
JsonNode jn = objM.readTree(new String("{\"animal\":\"dog\", \"says\":\"woof\"}")); jh.set(jn); jh.setFormat(Format.JSON);
JsonNode jn = objM.readTree(new String("{\"animal\":\"dog\", \"says\":\"woof\"}")); jh.set(jn); jh.setFormat(Format.JSON);
JsonNode jn = objM.readTree(new String("{\"animal\":\"dog\", \"says\":\"woof\"}")); jh.set(jn); jh.setFormat(Format.JSON);