diff --git a/marginalia_nu/src/main/java/nu/marginalia/wmsa/client/GsonFactory.java b/marginalia_nu/src/main/java/nu/marginalia/wmsa/client/GsonFactory.java index 02615ca9..c0af0c12 100644 --- a/marginalia_nu/src/main/java/nu/marginalia/wmsa/client/GsonFactory.java +++ b/marginalia_nu/src/main/java/nu/marginalia/wmsa/client/GsonFactory.java @@ -24,6 +24,7 @@ public class GsonFactory { .registerTypeAdapter(EdgeDomain.class, (JsonDeserializer) (json, typeOfT, context) -> new EdgeDomain(json.getAsString())) .registerTypeAdapter(EdgeId.class, (JsonDeserializer>) (json, typeOfT, context) -> new EdgeId<>(json.getAsInt())) .registerTypeAdapter(EdgeId.class, (JsonSerializer>) (src, typeOfSrc, context) -> new JsonPrimitive(src.id())) + .serializeSpecialFloatingPointValues() .create(); } }