-
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
Conventional configuration with private field visibility strategy #57
Comments
@bravehorsie Commented |
@m0mus Commented |
@steappe Commented
In short, I generally prefer a field approach over a (get/set) property approach because then I don't have to change the methods of my domain model to suit the constraints of a serialization / deserialization framework. The same applies when I use JPA for instance. Adding a private field strategy to Yasson for convenience would be great. |
@m0mus Commented Closing this issue. |
|
Currently only public class fields are serialized. Use "PrivateFieldVisibilityStrategy" per convention:
The strategy above should work out-of-the-box without any additional steps (JsonbConfig) required.
The text was updated successfully, but these errors were encountered: