only get json objects with a matching key
<p>So what I want to do is rather simple. I have a site where comments are displayed, and I have an admin page that allows an admin to delete comments. However I need comments to be hidden before they are reviewed. </p>

<p>This script grabs each object in my json file and displays them:</p>

<pre><code>    $.getJSON("data/comments.json", function(data) {
    var number = [];
    $.each(data, function(index, d) {
        number.push("&lt;div class='comment' id='" + index + "'&gt;" + "&lt;div class='comment-text'&gt;" + d.comment + "&lt;/div&gt;" + "&lt;img class='comment-image' src='data/upload/" + d.img + "'&gt;" + "&lt;div class='comment-identifier'&gt;&lt;span class='comment-name'&gt;" + "– " + d.name + "&lt;/span&gt;" + "&lt;span class='comment-department'&gt;" + ", " + d.department + "&lt;/span&gt;&lt;/div&gt;" + "&lt;/div&gt;");
    });
    $("&lt;div/&gt;", {
        "id": "comment-container",
        html: number.join("")
    }).appendTo("#comment-layout");
});
</code></pre>

<p>Each json object will have a key of "approved: false" applied to it upon creation. How can I have the above script only pull objects with a  "approved: true" on them?</p>