Uses of Interface
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
-
Packages that use JsonFormatVisitable Package Description com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode
), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.ext Contains extended support for "external" packages: things that may or may not be present in runtime environment, but that are commonly enough used so that explicit support can be added.com.fasterxml.jackson.databind.jsonFormatVisitors Classes used for exposing logical structure of POJOs as Jackson sees it, and exposed viaObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)
andObjectMapper.acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, JsonFormatVisitorWrapper)
methods.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.std -
-
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind
Classes in com.fasterxml.jackson.databind that implement JsonFormatVisitable Modifier and Type Class Description class
JsonSerializer<T>
Abstract class that defines API used byObjectMapper
(and other chainedJsonSerializer
s too) to serialize Objects of arbitrary types into JSON, using providedJsonGenerator
.static class
JsonSerializer.None
This marker class is only to be used with annotations, to indicate that no serializer is configured. -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ext
Classes in com.fasterxml.jackson.databind.ext that implement JsonFormatVisitable Modifier and Type Class Description static class
CoreXMLSerializers.XMLGregorianCalendarSerializer
class
DOMSerializer
class
NioPathSerializer
class
SqlBlobSerializer
Serializer implementation forBlob
to write as binary (for JSON and other formats Base64-encoded String, for binary formats as true binary). -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.jsonFormatVisitors
Methods in com.fasterxml.jackson.databind.jsonFormatVisitors with parameters of type JsonFormatVisitable Modifier and Type Method Description void
JsonArrayFormatVisitor.Base. itemsFormat(JsonFormatVisitable handler, JavaType elementType)
void
JsonArrayFormatVisitor. itemsFormat(JsonFormatVisitable handler, JavaType elementType)
Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).void
JsonMapFormatVisitor.Base. keyFormat(JsonFormatVisitable handler, JavaType keyType)
void
JsonMapFormatVisitor. keyFormat(JsonFormatVisitable handler, JavaType keyType)
Visit method called to indicate type of keys of the Map type being visitedvoid
JsonObjectFormatVisitor.Base. optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor. optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor.Base. property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor. property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMap
type) is being traversed.void
JsonMapFormatVisitor.Base. valueFormat(JsonFormatVisitable handler, JavaType valueType)
void
JsonMapFormatVisitor. valueFormat(JsonFormatVisitable handler, JavaType valueType)
Visit method called afterJsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType)
to allow visiting of the value type -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser
Classes in com.fasterxml.jackson.databind.ser that implement JsonFormatVisitable Modifier and Type Class Description class
BeanSerializer
Serializer class that can serialize Java objects that map to JSON Object output.class
ContainerSerializer<T>
Intermediate base class for serializers used for serializing types that contain element(s) of other types, such as arrays,Collection
s (Lists
,Sets
etc) andMap
s and iterable things (Iterator
s). -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser.impl
Classes in com.fasterxml.jackson.databind.ser.impl that implement JsonFormatVisitable Modifier and Type Class Description class
BeanAsArraySerializer
Specialized POJO serializer that differs fromBeanSerializer
in that instead of producing a JSON Object it will output a JSON Array, omitting field names, and serializing values in specified serialization order.class
FailingSerializer
Special bogus "serializer" that will throwJsonMappingException
if itsFailingSerializer.serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)
gets invoked.class
IndexedListSerializer
This is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such asLinkedList
that cannot}.class
IndexedStringListSerializer
Efficient implement for serializingList
s that contains Strings and are random-accessible.class
IteratorSerializer
class
MapEntrySerializer
class
StringArraySerializer
Standard serializer used forString[]
values.class
StringCollectionSerializer
Efficient implement for serializingCollection
s that contain Strings.class
TypeWrappedSerializer
Simple serializer that will call configured type serializer, passing in configured data serializer, and exposing it all as a simple serializer.class
UnknownSerializer
class
UnsupportedTypeSerializer
Special bogus "serializer" that will throwInvalidDefinitionException
if itsUnsupportedTypeSerializer.serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)
gets invoked.class
UnwrappingBeanSerializer
-
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser.std
Classes in com.fasterxml.jackson.databind.ser.std that implement JsonFormatVisitable Modifier and Type Class Description class
ArraySerializerBase<T>
Intermediate base class for serializers used for various Java arrays.class
AsArraySerializerBase<T>
Base class for serializers that will output contents as JSON arrays; typically serializers used forCollection
and array types.class
AtomicReferenceSerializer
class
BeanSerializerBase
Base class both for the standard bean serializer, and couple of variants that only differ in small details.class
BooleanSerializer
Serializer used for primitive boolean, as well as java.util.Boolean wrapper type.class
ByteArraySerializer
Unlike other integral number array serializers, we do not just print out byte values as numbers.class
ByteBufferSerializer
class
CalendarSerializer
Standard serializer forCalendar
.class
ClassSerializer
Also: default bean access will not do much good with Class.class.class
CollectionSerializer
Fallback serializer for cases where Collection is not known to be of type for which more specializer serializer exists (such as index-accessible List).class
DateSerializer
For efficiency, we will serialize Dates as longs, instead of potentially more readable Strings.class
DateTimeSerializerBase<T>
class
EnumSerializer
Standard serializer used forEnum
types.class
EnumSetSerializer
class
FileSerializer
For now, File objects get serialized by just outputting absolute (but not canonical) name as String valueclass
InetAddressSerializer
Simple serializer forInetAddress
.class
InetSocketAddressSerializer
Simple serializer forInetSocketAddress
.class
IterableSerializer
class
JsonValueSerializer
Serializer class that can serialize Object that have aJsonValue
annotation to indicate that serialization should be done by calling the method annotated, and serializing result it returns.class
MapSerializer
Standard serializer implementation for serializing {link java.util.Map} types.class
NonTypedScalarSerializerBase<T>
Deprecated.class
NullSerializer
This is a simple dummy serializer that will just output literal JSON null value whenever serialization is requested.class
NumberSerializer
As a fallback, we may need to use this serializer for other types ofNumber
s: both custom types and "big" numbers likeBigInteger
andBigDecimal
.static class
NumberSerializers.Base<T>
Shared base class for actual primitive/wrapper number serializers.static class
NumberSerializers.DoubleSerializer
This is the special serializer for regularDouble
s (and primitive doubles)static class
NumberSerializers.FloatSerializer
static class
NumberSerializers.IntegerSerializer
This is the special serializer for regularInteger
s (and primitive ints)static class
NumberSerializers.IntLikeSerializer
Similar toNumberSerializers.IntegerSerializer
, but will not cast to Integer: instead, cast is toNumber
, and conversion is by callingNumber.intValue()
.static class
NumberSerializers.LongSerializer
static class
NumberSerializers.ShortSerializer
class
ObjectArraySerializer
Generic serializer for Object arrays (Object[]
).class
RawSerializer<T>
This is a simple dummy serializer that will just output raw values by calling toString() on value to serialize.class
ReferenceTypeSerializer<T>
Base implementation for values ofReferenceType
.class
SerializableSerializer
Generic handler for types that implementJsonSerializable
.class
SqlDateSerializer
Compared to regularDate
serialization, we do use String representation here.class
SqlTimeSerializer
class
StaticListSerializerBase<T extends java.util.Collection<?>>
Intermediate base class for Lists, Collections and Arrays that contain static (non-dynamic) value types.static class
StdArraySerializers.BooleanArraySerializer
static class
StdArraySerializers.CharArraySerializer
Character arrays are different from other integral number arrays in that they are most likely to be textual data, and should be written as Strings, not arrays of entries.static class
StdArraySerializers.DoubleArraySerializer
static class
StdArraySerializers.FloatArraySerializer
static class
StdArraySerializers.IntArraySerializer
static class
StdArraySerializers.LongArraySerializer
static class
StdArraySerializers.ShortArraySerializer
protected static class
StdArraySerializers.TypedPrimitiveArraySerializer<T>
Intermediate base class used for cases where we may add type information (excludes boolean/int/double arrays).class
StdDelegatingSerializer
Serializer implementation where given Java type is first converted to an intermediate "delegate type" (using a configuredConverter
, and then this delegate value is serialized by Jackson.static class
StdJdkSerializers.AtomicBooleanSerializer
static class
StdJdkSerializers.AtomicIntegerSerializer
static class
StdJdkSerializers.AtomicLongSerializer
class
StdKeySerializer
Deprecated.Since 2.8, useStdKeySerializers.Default
instead.static class
StdKeySerializers.Default
This is a "chameleon" style multi-type key serializer for simple standard JDK types.static class
StdKeySerializers.Dynamic
Key serializer used when key type is not known statically, and actual key serializer needs to be dynamically located.static class
StdKeySerializers.EnumKeySerializer
Specialized instance to use for Enum keys, as per [databind#1322]static class
StdKeySerializers.StringKeySerializer
Simple and fast key serializer when keys are Strings.class
StdScalarSerializer<T>
class
StdSerializer<T>
Base class used by all standard serializers, and can also be used for custom serializers (in fact, this is the recommended base class to use).class
StringSerializer
This is the special serializer for regularString
s.class
TimeZoneSerializer
class
TokenBufferSerializer
We also want to directly support serialization ofTokenBuffer
; and since it is part of core package, it cannot implementJsonSerializable
(which is only included in the mapper package)class
ToStringSerializer
Simple general purpose serializer, useful for any type for whichObject.toString()
returns the desired JSON value.class
ToStringSerializerBase
Intermediate base class that serves as base for standardToStringSerializer
as well as for custom subtypes that want to add processing for converting from value to output into itsString
representation (whereas standard version simply calls value object'stoString()
method).class
UUIDSerializer
SpecializedJsonSerializer
to outputUUID
s.
-