Stop parsing JSON with grep, use jq
Any time a shell script has grep '"status"' in it, that script is one whitespace change away from breaking. jq reads the structure.
curl -s https://api/status | jq -r '.services[] | select(.healthy == false) | .name'-r prints raw strings instead of quoted ones, which is what you want when the output feeds another command.
shell