function formatObject(a){for(var b in a)formatObject(a[b]),a[b].parent=a};