JsonSerializable (Jackson JSON Processor)
Date: 2013-07-14

org.codehaus.jackson.map

## Interface JsonSerializable

- All Known Subinterfaces:
    JsonSerializableWithType
  All Known Implementing Classes:
    ArrayNode, ArrayType, BaseJsonNode, BigIntegerNode, BinaryNode, BooleanNode, CollectionLikeType, CollectionType, ContainerNode, DecimalNode, DoubleNode, IntNode, JSONPObject, JSONWrappedObject, LongNode, MapLikeType, MapType, MissingNode, NullNode, NumericNode, ObjectNode, POJONode, SimpleType, TextNode, TypeBase, ValueNode

  Deprecated.

      @Deprecated
      public interface JsonSerializable

  Interface that can be implemented by objects that know how to serialize themselves to JSON, using `JsonGenerator` (and `SerializerProvider` if necessary).

  Note that implementing this interface binds implementing object closely to Jackson API, and that it is often not necessary to do so -- if class is a bean, it can be serialized without implementing this interface.

  NOTE: as of version 1.5, this interface is missing one crucial aspect, that of dealing with type information embedding. Because of this, this interface is deprecated, although will be fully supported for all 1.x releases, and will work except for cases where polymorphic type information handling is needed for type (in which case implementing if `JsonSerializableWithType` is crucial).

  Since:
    1.5
  See Also:
    `JsonSerializableWithType`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `serialize(JsonGenerator jgen, SerializerProvider provider)` Deprecated.

- - ### Method Detail

    - #### serialize

          void serialize(JsonGenerator jgen,
                       SerializerProvider provider)
                         throws IOException,
                                JsonProcessingException

      Deprecated.
      Throws:
        `IOException`
        `JsonProcessingException`