Skip to content

Add support for prefix and suffix on @JsonAnySetter annotation #202

Description

@alxxyz

In our POJO we have 2 Map fields and both have keys prefixes.
So it will very help if @JsonAnySetter annotation will support some prefixes and suffixes.

class Request {

    @JsonAnySetter(prefix="loc_")
    private Map<String, String> location;
    
    @JsonAnySetter(prefix="u_")
    private Map<String, String> user;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions