You need to convert the deserialized path to an array of RoomPosition objects in order for moveByPath to understand it.