the deploy script uses grep/awk from service-key output. New versions of ibmcloud support JSON output. Use that with jq.