Improve ObjectWriter.forType()
to avoid forcing base type for container types
#727
Milestone
ObjectWriter.forType()
to avoid forcing base type for container types
#727
(for background, see FasterXML/jackson-jaxrs-providers#60)
ObjectWriter
hasforType()
method that allows forcing of full type to use for serialization, and it works reasonable well for many use cases. But it does not work well for one specific class of problems; that of genericCollection
(andMap
) types with heterogenous non-polymorphic content. In those cases serialization will use base class serializer, which often is not what is wanted.If possible, it would be good to avoid forcing use of base type for content values.
The text was updated successfully, but these errors were encountered: