public interface Jackson2Support extends JsonSerializable
Jackson2Support you are able
to convert any IBean instance from and to JSON. For this to work you need
another two prerequisites:
Jackson2ModuleForIBeans needs to be registered in the used
Jackson ObjectMapper. See Jackson2ModuleForIBeans for
details.ObjectMapperJsonSerializable.Base| Modifier and Type | Method and Description |
|---|---|
void |
readFromJsonParser(JsonParser p,
DeserializationContext ctxt)
Reads the field values from a
JsonParser and sets the fields of
this IBean to the retrieved values. |
serialize, serializeWithTypevoid readFromJsonParser(JsonParser p, DeserializationContext ctxt)
JsonParser and sets the fields of
this IBean to the retrieved values.
You normally do not use this method directly. It is mainly called from
Jackson2ModuleForIBeans during JSON deserialization.
p - the JsonParser reading some JSON representation of
this IBeanctxt - the Jackson2 deserialization context