title: Getting JSON value from JSON String using Shell Script
body: <p>I have this JSON String:</p>
  
  <pre><code>{"name":"http://someUrl/ws/someId","id":"someId"}
  </code></pre>
  
  <p>I just want to get value for "id" key and store it in some variable. I succesfully tried using jq. But due to some constraints, I need to achieve this just by using grep and string matching.</p>
  
  <p>I tried this so far: <code>grep -Po '"id":.*?[^\\]"';</code> But that is giving <code>"id":"ws-4c906698-03a2-49c3-8b3e-dea829c7fdbe"</code> as output. I just need the id value. Please help</p>