####  tree.toJSON()

Allow to return a representation in JSON of the tree. Useful for storing it, as it's result are valid params for the SBTree constructor.

```js
  tree.toJSON()
```
