title: How to put score of first bash variable into second?
body: <p>I'm trying to write two variables in bash. First variable: </p>
  
  <pre><code>variable1=$(az monitor log-analytics workspace get-shared-keys \ 
  --resource-group test --workspace-name test-workspace) 
  </code></pre>
  
  <p>and the result:</p>
  
  <pre><code>{
    "primarySharedKey": "aaa",
    "secondarySharedKey": "bbb"
  }
  </code></pre>
  
  <p>In second variable i need to grab primarySharedKey. I was trying something like that: </p>
  
  <pre><code>variable2=$variable1.primarysharedkey
  </code></pre>
  
  <p>but the result is giving me not only the value : </p>
  
  <pre><code>.primarysharedkeyKey": "aaa"
  </code></pre>
  
  <p>How to acomplish this to get only "aaa" value ? </p>