First things first: to specify deserializer to use for contents of an array you can use
@JsonDeserialize(contentUsing=MyDeserializer.class) Set<Department> departments;
Read full article from java - Is it posible to have a Jackson custom deserializer with non-default constructor? - Stack Overflow
No comments:
Post a Comment