#Getting value only from json

2 messages · Page 1 of 1 (latest)

sinful lintel
#

So I'm getting a blob of json back from the az cli that looks like this:

{
  "CI_CD_URL": "redactedUrl",
  "DOCKER_ENABLE_CI": true
}

I want to get the value (only) of CI_CD_URL. I can get that property only using qp

Which leaves me with:

{"CI_CD_URL":"redactedUrl"}

How do I parse that so that I'm left with only redactedUrl... Is that a regex jobbie or is there a better option?

valid flint
#

jq -r .CI_CD_URL