define a tree json object and parse to a tree