Angular directive for displaying a JSON object in an expandable tree structure