aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r--juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java
index 6bd8e11f..1bac9fce 100644
--- a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java
+++ b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java
@@ -1,5 +1,6 @@
package com.juick.server.protocol;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.juick.Message;
@@ -30,6 +31,9 @@ public class JuickProtocol {
public JuickProtocol(JdbcTemplate sql, String baseUri) {
this.sql = sql;
this.baseUri = baseUri;
+ json.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
+ json.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ json.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT);
}
/**