There is also a "link" array in the json response that contains the pagination urls - ex. "self" "next" "previous" and "last". Use the "next" url to get the next request/page. Note, that the last request/page will NOT contain a "next" url.
So, you could code it as: do (get json response, parse json, do stuff with json) loop while "next" url exists in parsed json.