Dynamic Tree - JSON
Collapse all -- Collapse the whole tree and only show the top branches
Toggle lines -- Hide/display the lines that connect the various nodes.

When you click a node the branch is displayed.
No node selected.

You can, of course, customize the code to take actions other than just displaying the node.