Skip to content

Update MapDeserializer to support StreamReadCapability.DUPLICATE_PROPERTIES #3484

@cowtowncoder

Description

@cowtowncoder

(note: needed to resolve FasterXML/jackson-dataformat-xml#498)

With Jackson 2.12 a system of StreamReadCapability options was introduced; one being DUPLICATE_PROPERTIES.
This capability is true for content formats like XML where underlying content may be exposed in a way that can produce seeming "duplicate" properties (in case of XML, a sequence of elements with same name).
These are, in turn, handled by coercing sequences of duplicates into implicit arrays.

Unfortunately duplicate coercion is only implemented for "untyped" values (nominal type of Object.class), by UntypedObjectDeserializer, and for JsonNode.
But it is not implemented yet for MapDeserializer. It should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions