title: jQuery .each get index of items
body: <p>The array fetched has a key and value for each item but I want to get a simple index for each value ie 0, 1, 2, 3, 4 etc which currently is not what the key gives (and nor do I want it to). Using <code>index</code> also does not seem to work.</p>
  
  <pre><code>$.getJSON( "filepath/current.json", function(data) {
    var items = [];
    $.each( data, function(key,val) {
      items.push( "&lt;p id='" + key + "'&gt;" + val + "&lt;/p&gt;" );
    });
  });
  </code></pre>