Find the value of key from JSON
<p>I'd like to extract the <code>&quot;id&quot;</code> key from this single line of JSON.</p>
<p>I believe this can be accomplished with grep, but I am not sure on the correct way.</p>
<p>If there is a better way that does not have dependencies, I would be interested.</p>
<p>Here is my example output:</p>
<pre><code>{
  &quot;data&quot;: {
    &quot;name&quot;: &quot;test&quot;,
    &quot;id&quot;: &quot;4dCYd4W9i6gHQHvd&quot;,
    &quot;domains&quot;: [&quot;www.test.domain.com&quot;, &quot;test.domain.com&quot;],
    &quot;serverid&quot;: &quot;bbBdbbHF8PajW221&quot;,
    &quot;ssl&quot;: null,
    &quot;runtime&quot;: &quot;php5.6&quot;,
    &quot;sysuserid&quot;: &quot;4gm4K3lUerbSPfxz&quot;,
    &quot;datecreated&quot;: 1474597357
  },
  &quot;actionid&quot;: &quot;WXVAAHQDCSILMYTV&quot;
}

</code></pre>