-
Notifications
You must be signed in to change notification settings - Fork 210
Structure view #1541
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
Structure view #1541
Conversation
5f4ac08
to
6906777
Compare
Two thoughts regarding the serialization changes:
|
Gson is rather simple... It serializes the fields and then uses the no args constructor and reflection to set the fields back. Therefore, the default values issues is a choice of having The "manual" registration of subtypes I think can be avoided with some changes I did to the |
Signed-off-by: aboyko <[email protected]>
Signed-off-by: aboyko <[email protected]>
Signed-off-by: aboyko <[email protected]>
Signed-off-by: aboyko <[email protected]>
Signed-off-by: aboyko <[email protected]>
6203ea6
to
6cc3086
Compare
@martinlippert Thus, no need to specifically state subclasses that can be serialized. Default values for empty array and collections via |
The serialization part looks good to me, like it very much. |
RuntimeTypeAdapterFactory
borrowed from gson-extras