Skip to content

Support for default @JsonView for a class #507

@markwoon

Description

@markwoon

I'd like to be able to specify a default view for all properties of a given class that doesn't already have a view defined on it. This would remove the need to annotate every single property.

Something along the lines of:

@JsonDefaultView(A.class)
public class Foo {
}

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