def find_room_in_json(json)
      room_hash = json["rooms"].find { |r| r["name"] == room }

      if room_hash
        room_hash["id"]
      else
        raise NotFound, "Room name '#{room}' could not be found."
      end
    end
def find_room_in_json(json)
      room_hash = json["rooms"].find { |r| r["name"] == room }

      if room_hash
        room_hash["id"]
      else
        raise NotFound, "Room name '#{room}' could not be found."
      end
    end
Internal: Parses through the rooms JSON response and returns the
 Integer room ID.

 json  - the rooms Hash of JSON data.

 Returns the Integer room number.
 Raises NotFound if a room cannot be found for the given name.