-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: @JsonbView #343
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be great to have something like jacksons
@JsonView
in Json-B, maybe it can be called@JsonbView
. It should work like the following example:The value of
@JsonbView
is a common (array of)String
orEnum
which is used as a discriminator. Using something likejsonb.toJson(user, "mysubset");
or
jsonb.toJson(user, UserSubset.MY_SUBSET_1);
will outut the json with only the properties annotated with
@JsonbView("mysubset1")
or@JsonbView(UserSubset.MY_SUBSET_1)
Is something like this already planned?
I think it would be an extremely useful and simple approach to declare various JSON subviews quickly, easily and cleanly.
The text was updated successfully, but these errors were encountered: