Create tree from JSON