Your own decode function for object that implements Serializable interface

1) Decode objects with Serializable interface and store its raw data; 
2) You can have your own decode function for object that implements Serializable interface; 
3) Improve NULL decoding