Created methods to allow posted json to create tree nodes