title: Accessing specific data from JSON array
body: <p>I'm trying to access a "minionsKilled" value in a JSON array.</p>
  
  <p>The JSON looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/BfVmJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BfVmJ.png" alt="enter image description here"></a></p>
  
  <p>And this is the code I have been trying:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    $.ajax({
          dataType: "json",
          type: 'GET',
          url: 'my_url.php',
          success: function(data){
              alert(JSON[data.matches[0].participants[0].stats.minionsKilled]);
          }
      });</code></pre>
  </div>
  </div>
  </p>
  
  <p>But the value being returned is "undefined".</p>
  
  <p>Any reason for this?</p>
  
  <p>I've been at it for hours and can't seem to figure it out.</p>
  
  <p>Thanks!</p>