if I have the following JSON object
{
"ID": 100,
"Name": "Sharon",
"Classes":{
"Mathematics": 4,
"English": 85,
"Chemistry": 70,
"Physics": 4,
"Biology": 8,
"FMathematics": 94
}
}
how can I return the Class names and their respective values in separate arrays?
here the plunker http://plnkr.co/edit/RXzjPllg0RSWjvgMjIoU?p=preview