Class GrapesJsSerializer
java.lang.Object
io.jmix.messagetemplatesflowui.kit.component.serialization.GrapesJsSerializer
Serializes various parameters for the
GrapesJs into JSON for subsequent sending it to the client-side.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected elemental.json.impl.JreJsonFactoryprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ser.impl.SimpleFilterProviderprotected com.fasterxml.jackson.databind.module.SimpleModuleprotected List<com.fasterxml.jackson.databind.ser.std.StdSerializer<?>>protected voidprotected voidprotected elemental.json.JsonValueparseRawJson(String rawJson) elemental.json.JsonValueSerializes the passed object into JSON.
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
jsonFactory
protected elemental.json.impl.JreJsonFactory jsonFactory
-
-
Constructor Details
-
GrapesJsSerializer
public GrapesJsSerializer()
-
-
Method Details
-
initSerializer
protected void initSerializer() -
initMapper
protected void initMapper() -
createModule
protected com.fasterxml.jackson.databind.module.SimpleModule createModule() -
createFilterProvider
protected com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider createFilterProvider() -
getSerializers
-
parseRawJson
-
serialize
Serializes the passed object into JSON.- Parameters:
object- object to serialize- Returns:
JsonValueof the passed object
-