title: JSON Accessing and Searching Nested Object with Jquery
body: <p>I want to access nested JSON, for example</p>
  
  <pre><code>var SchoolData =  {
          "SchoolRecord": {
              "classX": {
                  "name": "Student Name 1",
                  "subject": {
                      "mathsDept": {
                          "subject": "Maths",
                          "marks": 87
                      },
                      "scienceDept": {
                          "subject": "Physics",
                          "marks": 55                
                      },
                      "socialDept": {
                          "subject": "Social",
                          "marks": 95
                      }
                  }
              },
              "classIX": {
                  "name": "Student Name 2",
                   "subject": {
                      "mathsDept": {
                          "subject": "Maths",
                          "marks": 99
                      },
                      "scienceDept": {
                          "subject": "Physics",
                          "marks": 95
  
                      },
                      "socialDept": {
                          "subject": "Social",
                          "marks": 91
                      }
                  }
              }
          }
      }
  
      console.log(SchoolData.SchoolRecord);
  
  console.log(SchoolData.SchoolRecord[0]); 
  </code></pre>
  
  <p>Here is a <a href="http://jsfiddle.net/mvxkpttg/1/" rel="nofollow">FIDDLE</a>.</p>
  
  <p>I want marks in JSON data <code>SchoolData.marks</code></p>