diff --git a/src/main/java/de/arraying/kotys/JSON.java b/src/main/java/de/arraying/kotys/JSON.java index bc2169e..21da5b3 100644 --- a/src/main/java/de/arraying/kotys/JSON.java +++ b/src/main/java/de/arraying/kotys/JSON.java @@ -341,8 +341,9 @@ public final T marshal(Class clazz, String... ignoredKeys) * @param format - Format to be applied to String marshal() */ - public void setFormat(JSONMarshalFormat format) { + public JSON setFormat(JSONMarshalFormat format) { this.format = format; + return this; } /**