A serialization framework