Data serialization and deserialization library