For what it's worth, more than 3 years later... one workaround to have zero values serialized (along with the key) as you ask for is to use an Integer rather than an int.
Le vendredi 19 juillet 2013 23:56:24 UTC+2, Pedro Lamarão a écrit :
-- This is the JavaScript semantic (anything can be undefined or null) and then it behaves as other JSON serializers to omit null value but not zero values.
Hope this helps if anybody ever reads this...
Le vendredi 19 juillet 2013 23:56:24 UTC+2, Pedro Lamarão a écrit :
Em sexta-feira, 19 de julho de 2013 16h33min26s UTC-3, AJ escreveu:The AutoBean page statesGoals
- Decrease boilerplate in model-rich applications
- Support easy encoding of AutoBeans to JSON structures
- Provide support code for common operations on data-model objects
- Usable in non-GWT (e.g. server) code
Of course, that could mean usable in non-GWT Java code, but it doesn't say that :)It is usable, as intended.It is just not "decodable by unawares JSON parser" as you initially expected.A Java machine is not needed to decode this representation.You just need to decode it according with its protocol.--P.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment