Manage different format of serialization