- Fixed jq path: .pagination.has_next_page instead of .has_next_page
- Fixed grep fallback: remove rrsets before extracting zone names
to avoid matching nested 'name' fields
- Simplified has_next_page detection with simple grep -q
- Added debug output for page zones and has_next status
# Note: This simple parser does not handle escaped quotes in zone names.
# Zone names with escaped quotes are extremely rare and would require jq.
page_zones=$(echo"$response"| grep -oE '"name"[[:space:]]*:[[:space:]]*"[^"\\]*"'| sed 's/"name"[[:space:]]*:[[:space:]]*"\([^"\\]*\)"/\1/'| sed 's/\.$//')