Class CustomJsonSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class CustomJsonSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • 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)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomJsonSerializer

        public CustomJsonSerializer()
      • CustomJsonSerializer

        public CustomJsonSerializer​(int maxDepth)
    • Method Detail

      • handledType

        public java.lang.Class<java.lang.Object> handledType()
        Overrides:
        handledType in class com.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 class com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object>
        Throws:
        java.io.IOException
        com.fasterxml.jackson.core.JsonProcessingException