When calling an API, I am returned a json that can be pretty printed with
curl "https://mywebsite.com/api/cars.json&page=1" | jq '.'
Below is a sample output. Seeing as there are two pages of records (112 total entries and only 100 entries showing per page), what command can I use in jq to immediately fetch both pages of data?
{
"current_page": 1,
"per_page": 100,
"total_entries": 112,
"items": [
{
"id": 1,
"name": "vehicleA",
"state": "available",
"charge": 100
},
{
"id": 2,
"name": "vehicleB",
"state": "available",
"charge": 75
},
{
"id": 3,
"name": "vehicleB",
"state": "available",
"charge": 50
}...