How can I get all names from this object?
var familyTree = {name: 'Alex',
children:[
{name: 'Ricky',
children:'[...]'}
{name: 'John',
children:[{name: 'Tom',
children: '[...]'}]}]};
That it would execute Alex Ricky John Tom.
See Question&Answers more detail:os