jannbmsy / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Export the new tree in a json file #434

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys,

I'm using the drag and drop feature in a project where the user can change the 
hierarchy of products of the company.

After the user made the changes, now we need to export these changes to call a 
Web Service, in order to save these changes in a database.

So, is it possible to export the tree changes maybe in a json file with the 
same structure as the file we used in the input?

Thanks in advance.

Carlos

Original issue reported on code.google.com by soncar...@gmail.com on 3 Jun 2013 at 5:48

GoogleCodeExporter commented 8 years ago
you could use the toDict() method and then JSON.stringify()

Original comment by moo...@wwwendt.de on 4 Jun 2013 at 5:55

GoogleCodeExporter commented 8 years ago
It works! Thank you!

Original comment by soncar...@gmail.com on 4 Jun 2013 at 5:59