Class ChartJsObjectMapperFactory


  • public class ChartJsObjectMapperFactory
    extends Object
    • Constructor Detail

      • ChartJsObjectMapperFactory

        public ChartJsObjectMapperFactory()
    • Method Detail

      • getObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper​(boolean indentOutput)
        Returns an ObjectMapper configured with the right modules and settings to give the correct output for a chartjs config.
        Parameters:
        indentOutput - Whether or not to indent output (pretty print). Indenting is useful when you want to show the output to humans but has no value for chartjs itself.