Class OneBasedMonthSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Month>
com.fasterxml.jackson.datatype.jsr310.ser.OneBasedMonthSerializer
All Implemented Interfaces:
JsonFormatVisitable

public class OneBasedMonthSerializer extends JsonSerializer<Month>
Since:
2.17
  • Constructor Details

    • OneBasedMonthSerializer

      public OneBasedMonthSerializer(JsonSerializer<?> defaultSerializer)
  • Method Details

    • serialize

      public void serialize(Month value, JsonGenerator gen, SerializerProvider ctxt) throws IOException
      Description copied from class: JsonSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class JsonSerializer<Month>
      Parameters:
      value - Value to serialize; can not be null.
      gen - Generator used to output resulting Json content
      ctxt - Provider that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      IOException