title: getJSON returns error 'object is undefined'
body: <p>i have been having this trouble when trying to obtain json data.</p>
  
  <p>lets say i have a file called "projects.json" with the following structure (showing 2 items, the original file has over 100)</p>
  
  <pre><code>{"project":[
          {
              "featid":1,
              "ced":12001,
              "x":659770.164751449,
              "y":990679.029463668
  
          },
          {
              "featid":2,         
              "ced":110002,
              "x":621482.834052153,
              "y":1034455.00718159
          }
  ]
  }
  </code></pre>
  
  <p>when i try to acces the data i get the following error</p>
  
  <pre><code> object is undefined
   length = object.length, 
  </code></pre>
  
  <p>this is the function i am using to obtain the data</p>
  
  <pre><code> $(document).ready(function(){
   var url="json/projects.json";
  
      $.getJSON(url,{featid: 1},function(data){
          $.each(data.results,function(i,proy){
  
             $("#output").append('&lt;p&gt;'+proy.ced+'&lt;/p&gt;');
          });
  
      });
  });
  </code></pre>
  
  <p>i am missing something? i checked the json file and appears to be valid, so i dont know what could it be.</p>
  
  <p>thank you for your help</p>