diff --git a/chunjun-core/src/main/java/com/dtstack/chunjun/util/GsonUtil.java b/chunjun-core/src/main/java/com/dtstack/chunjun/util/GsonUtil.java index 5d64651127..0c54a78d1d 100644 --- a/chunjun-core/src/main/java/com/dtstack/chunjun/util/GsonUtil.java +++ b/chunjun-core/src/main/java/com/dtstack/chunjun/util/GsonUtil.java @@ -45,7 +45,12 @@ public class GsonUtil { public static Type gsonMapTypeToken = new TypeToken>() {}.getType(); private static Gson getGson() { - GSON = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create(); + GSON = + new GsonBuilder() + .serializeNulls() + .disableHtmlEscaping() + .setPrettyPrinting() + .create(); return setTypeAdapter(GSON); }