title: Getting at the data in my json file?
body: <p>I'm still trying to wrap my head around json and getting access to the data.</p>
  
  <p>Here's my json format, which I hope is logical for the type of data I'm using...</p>
  
  <pre><code>{"round1": [
      {
          "category" : "north",
          "match1": [
              {
                  "name": "Team1",
                  "score": 90
              },
              {
                  "name": "Team2",
                  "score": 96
              }
          ]
      },
      {
          "category" : "east",
          "match2": [
              {
                  "name": "Team3",
                  "score": 32
              },
              {
                  "name": "Team4",
                  "score": 84
              }
          ]
      }
  ],
      "round2": [
          {
              "category" : "south",
              "match1": [
                  {
                      "name": "Team2",
                      "score": 90
                  },
                  {
                      "name": "Team4",
                      "score": 96
                  }
              ]
          }
      ]
  } 
  </code></pre>
  
  <p>I'm trying to get at the data in there using...</p>
  
  <pre><code>$(document).ready(function(){
      //LOAD JSON
      $.getJSON("json.js", function(data) {
          alert(data.round1[i].match1[i]);
      }
  }
  </code></pre>
  
  <p>How would I get at the following data:</p>
  
  <ul>
  <li>category for match2 in round1?</li>
  <li>score for match1 in round2?</li>
  </ul>