Open ratheeshcn opened 1 year ago
I think this is a question for the project owner, @rharter. As I mentioned in the earlier discussion, auto-value-gson should possibly respect Gson.serializeNulls()
, only serializing null properties if it is true. But that would potentially be an incompatible change.
Thanks for the report. As @eamonnmcmanus mentioned, respecting GSON's serializeNulls()
setting is most appropriate, and it looks like that would require querying for that value here and only emitting the null value if it's true.
As this project has been dormant for quite a number of years, I don't have availability to work on this, but PRs are welcome.
@eamonnmcmanus I am having an issue on Builder method, it generates the json with all the fields instead of the values we set on builder method.
these are my dependencies
here is my data class
while accessing the builder method
it generates this
{"first_name":"John","last_name":null,"phone_numbers":null,"email_addresses":null}
instead of this
{"first_name":"John"}
Can you help me where i get wrong on this ? thanks in advance.