mbraak/jqTree

How to get data json from constructed tree

Closed this issue · 1 comments

Hello,
I would like to get tree json and i want to store it into database for future use.
How can i get JSON from currently constructed tree?
Thank you

Hello,

You can get the tree data using the getTree function.

var tree_data = $('#tree1').tree('getTree');

The result is a javascript data structure.