From c440520ea6351f3937b2f8bba60c96d16b76e891 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 17 Jan 2021 12:36:11 +0100 Subject: [PATCH] Ignore relay in json output if null --- src/main/java/org/asamk/signal/json/JsonMessageEnvelope.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/asamk/signal/json/JsonMessageEnvelope.java b/src/main/java/org/asamk/signal/json/JsonMessageEnvelope.java index 256b9751..4944a74d 100644 --- a/src/main/java/org/asamk/signal/json/JsonMessageEnvelope.java +++ b/src/main/java/org/asamk/signal/json/JsonMessageEnvelope.java @@ -20,6 +20,7 @@ public class JsonMessageEnvelope { final Integer sourceDevice; @JsonProperty + @JsonInclude(JsonInclude.Include.NON_NULL) final String relay; @JsonProperty