Skip to content

Commit

Permalink
pretty print for JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli B committed Dec 7, 2024
1 parent aff6b4e commit 12bf328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/gdv/xport/util/JsonFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 12bf328

Please sign in to comment.