title: Jquery Get JSON Data
body: <p>Can somebody help me to get JSON with JQuery? I think I am making some mistakes in my JQuery code. Any help will be appreciated. Below is my JSON and JQuery:</p>
  
  <p>JSON:</p>
  
  <pre><code>{
      "video": [
          {
              "id": "12312412312",
              "name": "Ecuaciones Diferenciales",
              "url": "/video/math/edo/12312412312",
              "author": {
                  "data": [
                      {
                          "name_author": "Alejandro Morales",
                          "uri": "/author/alejandro-morales",
                          "type": "master"
                      }
                  ]
              },
              "comments": {
                  "data": [
                      {
                          "id": "367501354973_12216733",
                          "from": {
                              "name": "Doug Edwards",
                              "id": "628675309"
                          },
                          "message": "Make sure you don't, as they say, go whole hog...\nhttp://www.youtube.com/watch?v=U4wTFuaV8VQ",
                          "created_time": "2010-03-06T03:24:46+0000"
                      },
                      {
                          "id": "367501354973_12249673",
                          "from": {
                              "name": "Tom Taylor",
                              "id": "1249191863"
                          },
                          "message": "Are you and Karen gonna, as they say, pig out?",
                          "created_time": "2010-03-06T21:05:21+0000"
                      },
                      {
                          "id": "367501354973_12249857",
                          "from": {
                              "name": "Sheila Taylor",
                              "id": "1315606682"
                          },
                          "message": "how did it turn out? Sounds nummy!\n",
                          "created_time": "2010-03-06T21:10:30+0000"
                      }
                  ]
              }
          },
          {
              "id": "12312412311",
              "name": "Ecuaciones Diferenciales : El arte de las diferenciaciones",
              "url": "/video/math/edo/1231241231212",
              "author": {
                  "data": [
                      {
                          "name_author": "Alejandro Morales",
                          "uri": "/author/alejandro-morales",
                          "type": "master"
                      }
                  ]
              },
              "comments": {
                  "data": [
                      {
                          "id": "367501354973_12216733",
                          "from": {
                              "name": "Doug Edwards",
                              "id": "628675309"
                          },
                          "message": "Make sure you don't, as they say, go whole hog...\nhttp://www.youtube.com/watch?v=U4wTFuaV8VQ",
                          "created_time": "2010-03-06T03:24:46+0000"
                      },
                      {
                          "id": "367501354973_12249673",
                          "from": {
                              "name": "Tom Taylor",
                              "id": "1249191863"
                          },
                          "message": "Are you and Karen gonna, as they say, pig out?",
                          "created_time": "2010-03-06T21:05:21+0000"
                      },
                      {
                          "id": "367501354973_12249857",
                          "from": {
                              "name": "Sheila Taylor",
                              "id": "1315606682"
                          },
                          "message": "how did it turn out? Sounds nummy!\n",
                          "created_time": "2010-03-06T21:10:30+0000"
                      }
                  ]
              }
          }
      ]
  }
  </code></pre>
  
  <p>jQuery Code</p>
  
  <pre><code>var url = 'result.json';
  $(document).ready(function() {
      $.getJSON(url, function(data) {
          $.each(data, function(video, data) {
              $('#stage').html('&lt;p&gt; ID:' + data.video + '&lt;/p&gt;');
              $('#stage').append('&lt;p Name: ' + data.name+ '&lt;/p&gt;');
              $('#stage').append('&lt;p&gt; URL: ' + data.url+ '&lt;/p&gt;');
  
              console.log("========================");
              console.log(data);
  
          });
      });
  });
  </code></pre>