Jackson Glossary: JsonSerializer


This abstract class defines the simple interface that serialization infrastructure uses to serialize a single value of supported type. To serialize a POJO using BeanSerializer (which is a subtype), bean serializer has set of child JsonSerializer instances to use for serializing values of contained properties.


JsonSerializer instances are called by other serializers. Thus most of the time users need not call anything. However, when creating serializers for composite types (like POJOs with properties), it is necessary to both locate other serializers to call (using SerializerProvider that is passed via serialize()}} and {{{serializeWithType methods that are part of the interface), and then call appropriate serialization methods.

Default implementation(s)


Back to Jackson Term Glossary


JsonSerializer (last edited 2011-01-26 00:32:45 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC