diff --git a/lib/src/main/java/gdv/xport/util/JsonFormatter.java b/lib/src/main/java/gdv/xport/util/JsonFormatter.java index 3f33b6a1..d10aa8b9 100644 --- a/lib/src/main/java/gdv/xport/util/JsonFormatter.java +++ b/lib/src/main/java/gdv/xport/util/JsonFormatter.java @@ -70,7 +70,7 @@ public JsonFormatter(final Writer writer) { */ @Override public void write(final Datenpaket datenpaket) throws IOException { - String value = OBJECT_MAPPER.writeValueAsString(datenpaket); + String value = OBJECT_MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(datenpaket); this.write(value); }