@Override protected JsonObjectMarshaller<Trade> getJsonObjectMarshallerWithPrettyPrint() { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.enable(SerializationFeature.INDENT_OUTPUT); JacksonJsonObjectMarshaller<Trade> jsonObjectMarshaller = new JacksonJsonObjectMarshaller<>(); jsonObjectMarshaller.setObjectMapper(objectMapper); return jsonObjectMarshaller; }