From 06c992cc5f140b661b9e747f4877fe6b8b6975cb Mon Sep 17 00:00:00 2001 From: Eli Sherer Date: Wed, 13 Nov 2024 14:41:27 +0200 Subject: [PATCH] fix for java playground --- .../co/nlighten/jsontransform/playground/GsonConfiguration.java | 1 + .../nlighten/jsontransform/playground/TransformTestRequest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; }