tags:

views:

42

answers:

1

Hi

I am trying to serialize and de-serialize (with Json and ObjectMapper) an polymorphic list of Objects that have the following annotation on the base class:

@JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@class")

When I write the object itself it does include the polymorphic property class in to its properties list, and when I write a list of these objects it does not include any information on the classes in this list.

Does someone know what is wrong or what to configure ?

A: 

I was using the wrong version 1.5.2 which has that bug open. They have it fixed in 1.5.4

Roman