public class JsonAttributesDeserializer extends org.codehaus.jackson.map.JsonDeserializer<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 |
|---|---|
List<NotificationAttribute> |
deserialize(org.codehaus.jackson.JsonParser parser,
org.codehaus.jackson.map.DeserializationContext ctx) |
public List<NotificationAttribute> deserialize(org.codehaus.jackson.JsonParser parser, org.codehaus.jackson.map.DeserializationContext ctx) throws org.codehaus.jackson.JsonParseException, IOException
deserialize in class org.codehaus.jackson.map.JsonDeserializer<List<NotificationAttribute>>org.codehaus.jackson.JsonParseExceptionIOExceptionCopyright © 2014 Jasig. All Rights Reserved.