Using $.each for more complex JSON data
<p>I understand how to use <code>$.each</code> to go through JSON data which looks like this:</p>

<pre><code>{
    "one": "Singular sensation",
    "two": "Beady little eyes",
    "three": "Little birds pitch by my doorstep"
}
</code></pre>

<p>For example:</p>

<pre><code>$.each(data, function(key, val) {
    echo '&lt;div&gt;' + val + '-' + key + '&lt;/div&gt;';
});
</code></pre>

<p>But how do I use <code>$.each</code> to go though JSON data which looks like this:</p>

<pre><code>{
    "d": [
        {
            "__type": "Tab",
            "id": 1,
            "name": "Innovation",
            "ordering": 0
        },
        {
            "__type": "Tab",
            "id": 3,
            "name": "Thought",
            "ordering": 0
        },
        {
            "__type": "Tab",
            "id": 0,
            "name": "Collaboration",
            "ordering": 0
        }
    ]
}
</code></pre>

<p>Where I want to use the <code>id</code> and <code>name</code>.</p>
