Class JsonObjectSerializer<T>

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
org.springframework.boot.jackson2.JsonObjectSerializer<T>
Type Parameters:
T - the supported object type
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

@Deprecated(since="4.0.0", forRemoval=true) public abstract class JsonObjectSerializer<T> extends com.fasterxml.jackson.databind.JsonSerializer<T>
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0.0 for removal in 4.2.0 in favor of Jackson 3 and ObjectValueSerializer
Helper base class for JsonSerializer implementations that serialize objects.
Since:
4.0.0
Author:
Phillip Webb
See Also:
  • Nested Class Summary

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

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    serialize(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected abstract void
    serializeObject(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Serialize JSON content into the value type this serializer handles.

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class Object

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

    • JsonObjectSerializer

      public JsonObjectSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • serialize

      public final void serialize(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<T>
      Throws:
      IOException
    • serializeObject

      protected abstract void serializeObject(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Serialize JSON content into the value type this serializer handles.
      Parameters:
      value - the source value
      jgen - the JSON generator
      provider - the serializer provider
      Throws:
      IOException - on error