Skip to content
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

Gson should support serialization of nulls #24

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 2 comments
Closed

Gson should support serialization of nulls #24

GoogleCodeExporter opened this issue Mar 19, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

See:
http://groups.google.com/group/google-gson/browse_thread/thread/48a2ce8b9cc2d7ee

We should consider supporting a GsonBuilder mode to send out nulls as well. 

Original issue reported on code.google.com by inder123 on 29 Jul 2008 at 12:30

@GoogleCodeExporter
Copy link
Author

Fixed in r126 by providing a GsonBuilder.serializeNulls() option. I also added 
a new
class JsonNull that is used to represent a JsonNull value for use by custom 
serializers. 

Original comment by inder123 on 31 Jul 2008 at 1:51

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Added a test for custom serialization using JsonNull in r127

Original comment by inder123 on 31 Jul 2008 at 2:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant