@Override protected JsonObjectMarshaller<Trade> getJsonObjectMarshallerWithPrettyPrint() { Gson gson = new GsonBuilder().setPrettyPrinting().create(); GsonJsonObjectMarshaller<Trade> jsonObjectMarshaller = new GsonJsonObjectMarshaller<>(); jsonObjectMarshaller.setGson(gson); return jsonObjectMarshaller; }