Class JDKKeySerializers.StringKeySerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<Object>
tools.jackson.databind.ser.jdk.JDKKeySerializers.StringKeySerializer
All Implemented Interfaces:
JsonFormatVisitable
Enclosing class:
JDKKeySerializers

public static class JDKKeySerializers.StringKeySerializer extends StdSerializer<Object>
Simple and fast key serializer when keys are Strings.
  • Constructor Details

    • StringKeySerializer

      public StringKeySerializer()
  • Method Details

    • serialize

      public void serialize(Object value, tools.jackson.core.JsonGenerator g, SerializationContext provider) throws tools.jackson.core.JacksonException
      Description copied from class: ValueSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class StdSerializer<Object>
      Parameters:
      value - Value to serialize; can not be null.
      g - Generator used to output resulting Json content
      provider - Context that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      tools.jackson.core.JacksonException