adt4j icon indicating copy to clipboard operation
adt4j copied to clipboard

JSON serialization and deserialization?

Open meoyawn opened this issue 9 years ago • 1 comments

I figure serialization should be pretty trivial with object mapping solutions such as Gson and Jackson

But deserialization (at least in Jackson) requires some boilerplate + some type information in the JSON tree itself (http://www.studytrails.com/java/json/java-jackson-Serialization-polymorphism.jsp)

Do you have any thoughts on this?

meoyawn avatar May 17 '15 16:05 meoyawn

I don't know the answer to your question. You can try to tinker with custom TypeIdResolvers to implement deserialization.

At first it seems easier to include required annotations to generated code, but it may be better to feather explorer the problem and try to find more extensible solution that can be adapted to other serialization frameworks...

sviperll avatar May 21 '15 21:05 sviperll