johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Cortez <radcor...@yahoo.com.INVALID>
Subject Arrays / Lists elements polymorphic support
Date Wed, 18 Apr 2018 17:31:37 GMT
Hi guys,
I'm trying to serialize a list of elements of multiple types and then deserialize it again.
It does require to somehow include the type in the serialization result to know to which type
we should map to deserialize. I think this could possible be done with an Adapter and playing
with the JsonArray.
I was just wondering if there any kind of out of the box support for this. It doesn't seem
so, at least I was not able to find.
Jackson for instance, includes a set of annotations that allow you to do exactly this, without
any extra / custom code.
Any thoughts?
Thank you.
Cheers,Roberto
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message