I have been working with an application that i have to use JQuery. And i have an issue my functions related to sons and grandsons in my below mentioned code:
If i type into my browser http://localhost:8080/fathers
Edited
I get :
[{"id":1,"fname":"fname","lname":"lname","sons":[{"id":1,"fname":"fname","lname":"lname","grandsons":[{"id":1,"fname":"fname","lname":"lname"}]}]}]
With my current $.getJSON i get the following output:
for sons:[objtct Object] for grandsons: undefined