Package com.jalios.jcms.json
Class CustomJsonSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
-
- com.jalios.jcms.json.CustomJsonSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class CustomJsonSerializer extends com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description CustomJsonSerializer()
CustomJsonSerializer(int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<java.lang.Object>
handledType()
void
serialize(java.lang.Object obj, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
-
-
-
Method Detail
-
handledType
public java.lang.Class<java.lang.Object> handledType()
- Overrides:
handledType
in classcom.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
-
serialize
public void serialize(java.lang.Object obj, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonProcessingException
-
-