How do I use a tree-widget

I want to use the tree-widget to render a json tree structure, but I don’t know how to use the tree-widget;
Similar to the following structure:

@Songlione a similar question has recently been answered on our GitHub Discussion board. Please take a look there.