Skip to content

Iterable serialization breaks when adding @JsonFilter annotation #2390

@cmercer

Description

@cmercer

Version: 2.9.9

If an class is Iterable it will serialize correctly with Jackson. However, if I apply a filter at all (even one that does no filtering at all) the Iterable class is turned into an JSON object and contains no data.

We were attempting to use a filter to filter responses back to the user using Spring. Spring PageImpl as a Sort object which is really an Iterable over Sort.Order. Once we applied the filter it broke the JSON for the Sort object.

I have removed all the Spring-ness from a demo project I will attach to this issue later today that shows the issue.

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