How to loop through an array that is nested within an object?
<p>I'm trying to get the contents of data within the subject array using jquery. How can this be done ? I tried using <code>$.each</code> but couldn't get the contents  . </p>

<pre><code>  "student": {
    "name": "sdfdsf",
    "age": 3,
    "subject": [
        {
            "science": "dfsdfdfd",
            "book": "sdfds"
        },
        {
            "math": "vbcb",
            "book": "sdfds"
        }
    ]
}
</code></pre>
