I have a tree data structure where every node is an object and I want to send the entire tree to the front-end. JavaScript doesn't allow objects as keys so I can't implement the solution below
tree= {{}:{{}:{}, {}:{}, ...}, ...}
How do I achieve this and how do I parse back the tree in the front-end .