org.codehaus.jackson.map
Interface JsonSerializable
- All Known Implementing Classes:
- ArrayNode, BaseJsonNode, BigIntegerNode, BinaryNode, BooleanNode, ContainerNode, DecimalNode, DoubleNode, IntNode, LongNode, MissingNode, NullNode, NumericNode, ObjectNode, POJONode, TextNode, ValueNode
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.
serialize
void serialize(JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonProcessingException
- Throws:
IOException
JsonProcessingException