[ADDED] JSON functions added: getRooms, getItems, constructor.