Skip to content

Commit

Permalink
fix: serialize nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Apr 11, 2024
1 parent 34b26df commit 9c337b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IO

JsonArray configJson = new JsonArray();
for (ConfigFieldInfo field : config) {
JsonObject fieldJson = new GsonBuilder().create().toJsonTree(field).getAsJsonObject();
JsonObject fieldJson = new GsonBuilder().serializeNulls().create().toJsonTree(field).getAsJsonObject();
configJson.add(fieldJson);
}

Expand Down

0 comments on commit 9c337b2

Please sign in to comment.