title: Displaying JSON Data
body: <p>I am really somewhat baffled:</p>
  
  <p>I have the following JSON data in a file called:  data.json</p>
  
  <pre><code>{
     "locations": [
        {
           "title": "The Space Needle",
           "latitude": 47.619,
           "longitude": -122.348
        },
        {
           "title": "Albany",
           "latitude": 46,
           "longitude": -74
        }
     ]
  }
  </code></pre>
  
  <p>When I use the following code to try and display the data I get nothing:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Another gone south&lt;/title&gt;
  &lt;script src="http://code.jquery.com/jquery-1.8.0.min.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  /* &lt;![CDATA[ */
  $(document).ready(function(){
      $.getJSON("data.json",function(data){
          $.each(data.locations, function(i,location){
                  content += '&lt;p&gt;' + location.title + '&lt;/p&gt;';
                  content += '&lt;p&gt;' + location.latitude + '&lt;/p&gt;';
                  content += '&lt;p' + location.longitude + '&lt;/p&gt;';
                  content += '&lt;br/&gt;';
                  alert('aler called');
                  $(content).appendTo("#loc");
          });
      });   
  });
  /* ]]&gt; */
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
          &lt;div class="container"&gt;
                  &lt;div class="span-24"&gt;
                         &lt;h2&gt;Check out the following locations:&lt;/h2&gt;
                                          &lt;div id="loc"&gt;
                                          &lt;/div&gt;
                  &lt;/div&gt;
          &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>