Get single value from Json response
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11922383/i-have-a-nested-data-structure-json-how-can-i-access-a-specific-value">I have a nested data structure / JSON, how can I access a specific value?</a>  </p>
</blockquote>



<p>My Json response looks like this:</p>

<pre><code>[{"referenceid":"999","firstname":"Firstname","middlename":"Middlename","lastname":"Surname","shortlisted":"0"}]
</code></pre>

<p>How can I just retrieve the referenceid value? I've searched and searched... tried all sorts of things but I can only return a "undefined".</p>

<p>Thanks</p>

<p>edit:</p>

<p>Forgot my other code:-</p>

<pre><code>function populateFormData() {

var mxKey = $.now();

$.get("\\web\\php\\somesite\\phpData.php?mxKey" + mxKey, function(applicationData) {

    console.log("Application Data: " + applicationData);

    var jsonData = JSON.parse(applicationData);

    console.log("Json Parse Data: " + jsonData);

});
</code></pre>

<p>}</p>
