You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2017/01/27 18:40:15 UTC

ObjectConverter and lists

Hi guys,

implementing a bridge between @XmlElements and johnzon serialization i
realized we don't support list for ObjectConverters.

The workaround I used was to setReadAttributeBeforeWrite(true), use
a TypeAwareAdapter, use a custom type  Wrapper {type, value} and ensure the
ordering of the serialization serializes type before value. This is a lot
of work and not guess-able. With an ObjectConverter it should be trivial
but we don't support lists.

Do we want to implement that? If so anyone motivated? (can do next week but
also think it is a way to enter the code if any of you wants).

Just shout a "I'll do it" if you want. In any case I"ll be happy to help to
guide or even do it, just let me know.

Enjoy your week-end ;)

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>