Java has a transient keyword which is used with default serialization to indicate a value that should not be serialized. However, if I use XML serialization with XMLDecoder the properties associated with that field are still serialized. I tried the same in JSON with the Gson library and transient fields do seem to be properly skipped.
Any ideas why?
No comments:
Post a Comment