|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JsonSerializableWithType
instead
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.
JsonSerializableWithType
Method Summary | |
---|---|
void |
serialize(JsonGenerator jgen,
SerializerProvider provider)
Deprecated. |
Method Detail |
---|
void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
IOException
JsonProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |