We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As mentioned here jakartaee/jsonb-api#255, and likely implemented in Johnzon as of https://issues.apache.org/jira/browse/JOHNZON-321, the @JsonbProperty annotation isn't recognized right now on the enum entries. So one need a custom adapter or serilizer / deserliser.
Is it possible to implement it directly? So one only need to use the annotation inside the enum directly, and nothing more?
I think about something like:
public enum Colors { @JsonbProperty("Red") RED, @JsonbProperty("Green") GREEN }```
The text was updated successfully, but these errors were encountered:
[eclipse-ee4j#616]Suggested solution for recognizing @JsonbProperty a…
8061172
…nnotation on enum constants Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
[eclipse-ee4j#616] Extract the common part of the Enum De / Serialize…
49018c1
…r and Adapter in tests Signed-off-by: Anton Pinsky <anton.pinsky@ionos.com>
No branches or pull requests
As mentioned here jakartaee/jsonb-api#255, and likely implemented in Johnzon as of https://issues.apache.org/jira/browse/JOHNZON-321, the @JsonbProperty annotation isn't recognized right now on the enum entries. So one need a custom adapter or serilizer / deserliser.
Is it possible to implement it directly? So one only need to use the annotation inside the enum directly, and nothing more?
I think about something like:
The text was updated successfully, but these errors were encountered: