diff --git a/java/playground/src/main/java/co/nlighten/jsontransform/playground/GsonConfiguration.java b/java/playground/src/main/java/co/nlighten/jsontransform/playground/GsonConfiguration.java index 9887756..3c7db97 100644 --- a/java/playground/src/main/java/co/nlighten/jsontransform/playground/GsonConfiguration.java +++ b/java/playground/src/main/java/co/nlighten/jsontransform/playground/GsonConfiguration.java @@ -17,6 +17,7 @@ public GsonBuilderCustomizer typeAdapterRegistration() { return builder -> { builder .setDateFormat(dateTime) + .serializeNulls() .registerTypeAdapter(BigDecimal.class, new BigDecimalTypeAdapter()) .setNumberToNumberStrategy(ToNumberPolicy.BIG_DECIMAL) .setObjectToNumberStrategy(ToNumberPolicy.BIG_DECIMAL); diff --git a/java/playground/src/main/java/co/nlighten/jsontransform/playground/TransformTestRequest.java b/java/playground/src/main/java/co/nlighten/jsontransform/playground/TransformTestRequest.java index e299cb1..8c3b359 100644 --- a/java/playground/src/main/java/co/nlighten/jsontransform/playground/TransformTestRequest.java +++ b/java/playground/src/main/java/co/nlighten/jsontransform/playground/TransformTestRequest.java @@ -5,7 +5,7 @@ import java.util.Map; public class TransformTestRequest { - public Object input; + public JsonElement input; public JsonElement definition; public Map additionalContext; }