changed Collections.java tree to use JsonObjects instead of StringBuffer