How can I serialize a property which is a Map as a List of the Map\'s values? I\'ve been able to do other simple conversions using the @JsonSerialize(using=...)
I implemented using default Serializer to handle values that are not just String :
@Override
public void serialize(final Map value, final JsonGenerator jgen, final SerializerProvider provider) throws IOException,
JsonProcessingException {
provider.defaultSerializeValue(value.values(), jgen);
}
EDIT : As mentioned by Radu Simionescu this solution only works for Maps of Pojos.