title: getJSON typerror e is undefined
body: <p>I have this jQuery below:</p>
  <pre class="lang-js prettyprint-override"><code>$.getJSON('../GetCities?', { term: inputString }, function (data) {            
    var anchorTagElements = '';
    console.log(&quot;line 39 &quot;);
    $.each(data.items, function (i, item) {
      console.log(&quot;line 41 &quot; );    
      anchorTagElements = anchorTagElements + '&lt;a href=&quot;&quot;&gt;&lt;span class=&quot;searchheading&quot;&gt;' +
        item.City + ', &lt;/span&gt;&lt;/a&gt;';
    });
  });
  </code></pre>
  <p>I can see the data is coming back from the server using firebug I can see the line 39 is printed to the log but line 41 is not meaning it failed right before the line 41 console.log</p>
  <p>Error message I am getting is <strong>TypeError: e is undefined</strong></p>
  <p><img src="https://i.stack.imgur.com/8BvIS.png" alt="error message" /></p>
  <p>any ideas where to look at?</p>
  <p><strong>EDIT</strong></p>
  <p>Using jQuery non-minified I got:</p>
  <blockquote>
  <p>TypeError: obj is undefined<br />
  length = obj.length,</p>
  </blockquote>
  <p>It is failing while trying to get the length to evaluate <code>i</code>. I am not sure why I can see the data coming back correctly.</p>
  <p>Here is the Data that comes back:</p>
  <p><img src="https://i.stack.imgur.com/pFR0y.png" alt="data" /></p>