Top Constructors Methods
tools.jackson.databind.ext.javatime.ser

public Class ZoneIdSerializer

extends ToStringSerializerBase
Class Inheritance
Imports
java.time.ZoneId, tools.jackson.core.JacksonException, .JsonGenerator, .JsonToken, tools.jackson.core.type.WritableTypeId, tools.jackson.databind.SerializationContext, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.std.ToStringSerializerBase

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)

Overrides tools.jackson.databind.ser.std.ToStringSerializerBase.serializeWithType.

Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix.

public String
Inherited from tools.jackson.databind.ser.std.ToStringSerializerBase:
acceptJsonFormatVisitorisEmptyserialize

Constructor Detail

ZoneIdSerializerback to summary
public ZoneIdSerializer()

Method Detail

serializeWithTypeback to summary
public void serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException

Overrides tools.jackson.databind.ser.std.ToStringSerializerBase.serializeWithType.

Doc from tools.jackson.databind.ser.std.ToStringSerializerBase.serializeWithType.

Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. This should work for most cases; some sub-classes may want to change this behavior.

Annotations
@Override
valueToStringback to summary
public String valueToString(Object value)

Implements abstract tools.jackson.databind.ser.std.ToStringSerializerBase.valueToString.

Annotations
@Override