diff --git a/ors-api/src/main/java/org/heigit/ors/api/responses/export/topojson/Properties.java b/ors-api/src/main/java/org/heigit/ors/api/responses/export/topojson/Properties.java index 8b7fb067da..86b42b98c0 100644 --- a/ors-api/src/main/java/org/heigit/ors/api/responses/export/topojson/Properties.java +++ b/ors-api/src/main/java/org/heigit/ors/api/responses/export/topojson/Properties.java @@ -2,8 +2,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import lombok.Builder; import lombok.Getter; +import org.heigit.ors.api.responses.export.json.WeightSerializer; import java.io.Serializable; import java.util.List; @@ -13,6 +15,7 @@ @Builder public class Properties implements Serializable { @JsonProperty("weight") + @JsonSerialize(using = WeightSerializer.class) private Double weight; @JsonProperty("osm_id") private Long osmId;