Class ObjectSerializer

java.lang.Object
io.micronaut.serde.support.serializers.ObjectSerializer
All Implemented Interfaces:
Serializer<Object>, CustomizableSerializer<Object>

@Internal public final class ObjectSerializer extends Object implements CustomizableSerializer<Object>
Fallback Serializer for general Object values. For deserialization, deserializes to standard types like Number, String, Boolean, Map and List.

This class is used in multiple scenarios:

  • When the user has an Object property in a serializable bean.
  • When the user explicitly calls JsonMapper.writeValue(java.io.OutputStream, java.lang.Object)(gen, Object .class)