public class JsonAttributesDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<java.util.List<NotificationAttribute>>
v1.0:
"attributes": [
{
"name": "category",
"values": ["Academic"]
},
{
"name": "department",
"values": ["Physics and Astronomy", "Earth Sciences"]
}
],
v2:0
"attributes": {
"category": ["Academic"],
"department": ["Physics and Astronomy", "Earth Sciences"]
},
This class dynamically determines which scenario applies and handles the parsing accordingly.| Constructor and Description |
|---|
JsonAttributesDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<NotificationAttribute> |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext ctx) |
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic java.util.List<NotificationAttribute> deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctx) throws com.fasterxml.jackson.core.JsonParseException, java.io.IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<java.util.List<NotificationAttribute>>com.fasterxml.jackson.core.JsonParseExceptionjava.io.IOException