In this post we will show you how to build the sample JSON object and from that how to build the tree structure.