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.JreJsonFactory
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider
protected com.fasterxml.jackson.databind.module.SimpleModule
protected List<com.fasterxml.jackson.databind.ser.std.StdSerializer<?>>
protected void
protected void
protected elemental.json.JsonValue
parseRawJson
(String rawJson) elemental.json.JsonValue
Serializes 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:
JsonValue
of the passed object
-