I’m trying to get the contents of data within the subject array using jquery. How can this be done ? I tried using $.each but couldn’t get the contents .
"student": {
"name": "sdfdsf",
"age": 3,
"subject": [
{
"science": "dfsdfdfd",
"book": "sdfds"
},
{
"math": "vbcb",
"book": "sdfds"
}
]
}
To use $.each on an array: