Class ChartJsObjectMapperFactory
- java.lang.Object
-
- nl.crashdata.chartjs.serialization.ChartJsObjectMapperFactory
-
public class ChartJsObjectMapperFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ChartJsObjectMapperFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMappergetObjectMapper(boolean indentOutput)Returns anObjectMapperconfigured with the right modules and settings to give the correct output for a chartjs config.
-
-
-
Method Detail
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper(boolean indentOutput)
Returns anObjectMapperconfigured 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.
-
-