I am querying an URI to get some data from a web service. That is all fine.
But I notice that my json hase page_count
of multiple pages but only 1st page data is returned.
Here is how json could look like:
{
"last_item": null,
"total_items": "201",
"first_item": null,
"page_number": "1", **<-- THIS IS 1ST PAGE**
"page_size": "10",
"page_items": null,
"search_time": "0.045",
"page_count": "21", **<-- THERE IS 21 PAGES IN TOTAL**
"cars": {
"car": [
{ ... },
{ ... },
...
...
]
}
}
How do I return all pages instead of returning only 1st page? I am aware that this might not be good idea but how do I do that?
UPDATE: The URI to web-service is something like:
http://<api_address>.com/json/cars/search?app_key=<api_key>&c=music&location=32.263569,-111.9847682
Thanks,