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

Provide a mode of operation to force explicit serialization and deserialization #4

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

Comments

@GoogleCodeExporter
Copy link

Provide a GsonBuilder setting that forces Gson to ignore all fields except
those marked with a specific annotation like "@Expose"

Original issue reported on code.google.com by inder123 on 27 Apr 2008 at 2:34

@GoogleCodeExporter
Copy link
Author

Original comment by inder123 on 27 Apr 2008 at 2:34

@GoogleCodeExporter
Copy link
Author

Fixed in r34 by providing an @Expose annotation that can be applied to fields. 
The
explicit serialization and deserialization can be enabled by invoking the
excludeFieldsWithoutExposeAnnotation() method of GsonBuilder. 

See
http://groups.google.com/group/google-gson-codereviews/browse_thread/thread/aa9f
9a8c8cb4a2a4

Original comment by inder123 on 9 May 2008 at 8:48

  • Changed state: Fixed

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