Replace json by msgpack