public function jsonSerialize() {
        return array('count' => $this->totalAmount, 
            'countOfPages' => $this->numberOfPages(), 
            'limit' => $this->amountPerPage,
            'page' => $this->currentPage, 
            'previousPage' => $this->previousPage(), 
            'nextPage' => $this->nextPage());
    }