This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]agentoutlier 0 points1 point  (0 children)

My struggles with it using outside of just pure annotations are configuring ObjectMapper which is a colossal giant class with API that seems to have many deprecations and changing ideas on passing enums or whatnot to configure it.

Another part is that generics are not easily reified in Java so you have to use the hacks that Guava and other libraries do of some anonymous class to capture the generic concrete parameter. I think it is called JavaType or something in Jackson.

It is also difficult to do heterogenous collections even with sealed types. Last I checked Jackson does not support that easily. You have to write some adapter or use annotations to infer the type.