@TimStone - Really simple: a $.ajax() call with dataType: 'json'
The JSON is: {person:"Dave", children:[ {name: "Alice", age:10, children:[]}, {name:"Bob", age:20, children:[]}] and if I recurse through children, printing their names, for anyone with empty children array it prints the string above (which looks like a function def)