title: Parsing an HTTP response from a curl POST
body: <p>I'm currently trying to grab and assign the <code>N_596164000673190002</code> to a variable from a curl command.</p>
  
  <p>This is the command:</p>
  
  <pre><code>curl -L -H 'X-Cisco-Meraki-API-Key: mykeygoeshere' -X POST -H'Content-Type: application/json' --data-binary '{"name":"'"$NETWORK_NAME"'", "type":"appliance", "timeZone":"'"$TIME_ZONE"'"}' 'https://dashboard.meraki.com/api/v0/organizations/foobar/networks'
  </code></pre>
  
  <p>This is the response:</p>
  
  <pre><code>{"id":"N_596164000673190002","organizationId":"foo","type":"appliance","name":"bar","timeZone":"America/Chicago","tags":""}
  </code></pre>
  
  <p>How do I successfully read and grab the variable after <code>id</code> (without the double quotes), while also simutaneously assigning it to a variable, <code>$NETWORK_ID</code>? I imagine this can all be done in one line.</p>
  
  <p>If this is successful, <code>echo $NETWORK_ID</code> should return <code>N_596164000673190002</code></p>