public class ChartSerialization extends Object implements Serializable
Constructor and Description |
---|
ChartSerialization() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createObjectMapper()
Create the default
ObjectMapper used for serialization. |
static com.fasterxml.jackson.databind.ObjectMapper |
createObjectMapper(com.fasterxml.jackson.databind.ser.BeanSerializerModifier modifier) |
static void |
setObjectMapperInstance(com.fasterxml.jackson.databind.ObjectWriter newObjectWriter)
This method can be used to configure the
ObjectMapper object used
to serialize configuration objects to client side. |
static String |
toJSON(AbstractConfigurationObject object) |
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
ObjectMapper
used for serialization.public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(com.fasterxml.jackson.databind.ser.BeanSerializerModifier modifier)
public static void setObjectMapperInstance(com.fasterxml.jackson.databind.ObjectWriter newObjectWriter)
ObjectMapper
object used
to serialize configuration objects to client side. If users have made
their extensions to underlying library and wish to build a typed Java API
for it, adding custom serializers might be needed.newObjectWriter
- createObjectMapper()
public static String toJSON(AbstractConfigurationObject object)
Copyright © 2019. All rights reserved.