title: JSON combined with python loop to only print integers
body: <p>I'm trying to loop through integers that are in the json list based on a variable provided before. Here is my JSON list:</p>
  
  <pre><code>    tracks =[
     {
        'album_name':'Nevermind',
        1:'Smells like teen spirit',
        2:'In Bloom',
        3:'Come as you are',
        4:'Breed',
        5:'Lithium',
        6:'Polly',
        7:'Territorial Pissings',
        8:'Drain You',
        9:'Lounge act',
        10:'Stay away',
        11:'On a plain',
        12:'Something in the way'
     },
     {
        'album_name':'Relapse',
        1:'Hello',
        2':'3AM',
  
     },
  
  ]
  </code></pre>
  
  <p>And this is my html loop:</p>
  
  <pre><code>&lt;div class="single_album"&gt;
      &lt;h2&gt;Track list&lt;/h2&gt;
      {% for tracks in tracks if tracks.album_name == album_name %}
          &lt;ol&gt;
              &lt;li&gt;{{ tracks[x] }}&lt;/li&gt;
          &lt;/ol&gt;
      {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>If I put 1 instead of 'x' it works, as it prints record number one which is "1:'Smells like teen spirit'" However I don't know how to make a loop in which the x will increment each time it loops as I Im not sure whether it should be placed in python or html file.</p>