Class JacksonUtil
java.lang.Object
ai.vespa.metricsproxy.metric.model.json.JacksonUtil
- Author:
- smorgrav, gjoranv
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic com.fasterxml.jackson.databind.ObjectMapperstatic voidwriteDouble(com.fasterxml.jackson.core.JsonGenerator jgen, Double value) Returns an object mapper with a custom floating point serializer to avoid scientific notation
-
Constructor Details
-
JacksonUtil
public JacksonUtil()
-
-
Method Details
-
objectMapper
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
writeDouble
public static void writeDouble(com.fasterxml.jackson.core.JsonGenerator jgen, Double value) throws IOException Returns an object mapper with a custom floating point serializer to avoid scientific notation- Throws:
IOException
-
format
-