Class JsonUtil
java.lang.Object
com.cognite.client.servicesV1.util.JsonUtil
Utilities class that provides central configurations of JSON handling.
It offers a Jackson
ObjectMapper instance that is pre-configured to handle serialization of
Protobuf Message.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperReturns a pre-configuredObjectMappersingleton.
-
Method Details
-
getObjectMapperInstance
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapperInstance()Returns a pre-configuredObjectMappersingleton. You should use this as the starting point for instantiating readers and writers.- Returns:
- A pre-configured singleton.
-