title: Parsing errors of JSON using jq
body: <p>I have a curl command which results in the following example json:</p>
  
  <pre><code>json={"id":"12345","key":"ABC-DEF","url":"https://google.com"}
  </code></pre>
  
  <p>Now, I want to parse this, and get the key out of it and store it in a variable. What I did was the following:</p>
  
  <pre><code>json={"id":"12345","key":"ABC-DEF","url":"https://google.com"}
  ID=$(echo $json | jq '.key' )
  </code></pre>
  
  <p>But the above gives me a error as: <code>parse error: Invalid numeric literal at line 1, column 4</code>. Can someone help me with this? Thanks!</p>