Skip to content

RFE: use a JsonView for every resource of an application #24

@cowtowncoder

Description

@cowtowncoder

(note: migrated from https://github.com/FasterXML/jackson-jaxrs-json-provider/issues/15)


As this stackoverflow question suggests, JsonView can only be added on methods. So, if one need to use a JsonView globally — for every resource of an application — it has a ton of work to do.

Can we use a global JsonView: objectMapper.setDefaultView(View.Public.class)?
Can we annotate Resource classes with JsonView?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions