title: jQuery - Get value from JSON Stringify
body: <p>I have a form, that I need to get the values from:</p>
  
  <pre><code>var formConfig = JSON.stringify($("#bookingform").serializeArray());
  </code></pre>
  
  <p>which returns below:</p>
  
  <pre><code>[{"name":"client_id","value":"1"},{"name":"consignee_id","value":""},{"name":"client","value":"DAKO"},{"name":"model","value":"2"},{"name":"type","value":"2"},{"name":"temperatur","value":"2"},{"name":"shipper_labels","value":"1"},{"name":"batteri_labels","value":"1"},{"name":"batteri_number","value":"2222"},{"name":"pickup","value":"April 27, 2017 18:25"},{"name":"intern_marks","value":"fdsfads"},{"name":"extern_marks","value":"sadsfdsf"},{"name":"consignee","value":""},{"name":"marks","value":""}]
  </code></pre>
  
  <p>I then need to access above values from the JSON string, which I am using this function to:</p>
  
  <pre><code>var confirmBooking = function(element, setting, correct, notcorrect) {
      $('.confirm-booking')
      .find(element)
      .html(setting === 1 ? correct : notcorrect);
  };
  </code></pre>
  
  <p>The thought is, I can use above function:</p>
  
  <pre><code>confirmBooking('.config_batteri', formConfig.client_id, "Yes", "No");
  </code></pre>
  
  <p>and so on..</p>
  
  <p><code>formConfig.client_id</code> should return <code>1</code>, since that's the value in the JSON string above.</p>
  
  <p>However it returns <code>undefined</code>:</p>
  
  <pre><code>console.log(formConfig.client_id); // Returns "undefined"
  </code></pre>