Skip to content

Allow use of @JsonIgnoreProperties for POJO-valued arrays, Collections #1060

Closed
@cowtowncoder

Description

@cowtowncoder

Currently it is possible to use @JsonIgnoreProperties not only on classes, but also on POJO-valued properties. If so, ignorals are combined with ones that class itself may have.

This can not, however, be used for Collections or arrays, as they have no properties to ignore. But if collection/map contents are POJOs, it would semantically make sense to allow usage for value type (elements), if possible.

It might also make sense to allow similar approach for Map values, but there is the problem with ambiguity, as Map keys can be considered properties, and currently functionality does support ignoral.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions