title: Query secret value (password) from a JSON string
body: <p>I need to query the secret value from AWS Secrets Manager within Jenkins:</p>
  
  <p>This is part of the pipeline:</p>
  
  <pre><code>sec=$(aws secretsmanager get-secret-value \
     --secret-id mySecretId \
     --query 'SecretString' \
     --output text)
  
  
  echo "${sec}"
  
  # Result: {"username":"gwuser","password":"myPasswordValue","dbInstanceIdentifier":"mySecretId"}
  
  </code></pre>
  
  <p>How can I now extract the "myPasswordValue"?</p>