Perspective dynamic Navigation tree build

Just for thoroughness, I did find a way to put items on the tree:

    stylestring = {'classes':'TreeIcon_NoComms'}
	iconstring = {'path':'material/stop','style':stylestring}
	
	taglist=system.tag.browse(path = '[default]*Tag Folder*', filter = {})
	for tag in taglist.getResults():
		itemstring = {'label':tag['name'],"expanded":bool(1),'icon':iconstring,'items':[]}	
		self.getChild("root").getChild("Tree").props.items[0].items.append(itemstring)
		

As long as props.items[0].items exists that will add an entry for each tagname in my list. a couple of notes on things I found:
For things that are JSON true/false you have to use “bool(1)” (for true) or “bool(0)”, if you use the words true/false they will get interpreted as strings.

In my case I created styles and use those classes, but you can also build your style string to include your style items.

I’m currently stuck on adding the bindings in script, that’s the next step (my bindings change the style class to indicate problems with particular entries).

I’d also love a way to get rid of the self.getChild syntax, there ought to be a way, since I am working on the specific component, to use self.props or something similar, but I can’t find it.