Class 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 Detail

      • 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.