Check PIPESTATUS of each stage bash

Inspect exit code of every pipe stage; $? only reports the last command

curl -s "$url" | jq .data; echo "${PIPESTATUS[@]}"