Manipulates tree like structure. Produces JSON compatible with jstree (although jstree is not required to use).