serialize/deserialize, toJson/fromJson, buffer reader implemented