How to add info to getJSON response
<p>I am using jQuery to grab JSON data for a page I'm coding.   I need to add DT_RowId as a key and set it equal to the id.</p>

<p>Here's what I have:</p>

<pre><code>var recalls = [];

$.getJSON('ajax_datatables_get_json.php?what=contact_recalls', function(data) {

    $.each(data, function(index) {
        recalls.push({DT_RowId: data[index].id});
    }); 

});

console.log(recalls);
</code></pre>

<p>Here's a sample of what my JSON looks like:</p>

<pre><code>[{"reason":"Clean\/Check","id":"294","recall_date":"2016-04-14","appt_reason_id":"28","datetime":"2016-04-29 15:25:11"},{"reason":null,"id":"290","recall_date":"2016-04-13","appt_reason_id":null,"datetime":"2016-04-29 12:57:05"}]
</code></pre>

<p>I am trying to use .push, assuming that's correct.  Right now there is nothing showing up in the the console for the array.   It's empty.   The JSON page does load properly and I can see the response.  </p>

<p>Basically I want to push the id back into each JSON as a separate field called DT_RowID so I would get something like this:</p>

<pre><code>[{"reason":"Clean\/Check","id":"294","recall_date":"2016-04-14","appt_reason_id":"28","datetime":"2016-04-29 15:25:11", "DT_RowId": "294"},
 ... ... 
</code></pre>

<p>Any advice?</p>