Class JsonUtil

java.lang.Object
com.cognite.client.servicesV1.util.JsonUtil

public class JsonUtil extends Object
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 Details

    • getObjectMapperInstance

      public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapperInstance()
      Returns a pre-configured ObjectMapper singleton. You should use this as the starting point for instantiating readers and writers.
      Returns:
      A pre-configured singleton.