TreeNode represents the JSON representation of a node in the tree. It is used to serialize and deserialize the tree.