[gson] serialize nulls in GsonHolder gson

This commit is contained in:
Johannes Frohnmeyer 2022-09-15 14:50:45 +02:00
parent c62b74f293
commit 2d3c1c6a19
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -19,6 +19,7 @@ public class GsonHolder {
.excludeFieldsWithModifiers(Modifier.TRANSIENT, Modifier.PRIVATE)
.setExclusionStrategies(new GsonIgnoreExclusionStrategy())
.setLenient()
.serializeNulls()
.setPrettyPrinting();
private static boolean clean = false;