Exporting a tree or treegrid to a JSON File


I was wondering if there were any native methods for writing a tree in its’ current state into a JSON format file.

I’ve spotted a lot of methods that interact with cookies, and serializeTreeToJSON does convert the tree into a JSON string, but does not, to my knowledge, write it to a file. Is there a method that takes care of that? I would have thought so, but cannot seem to find one.

Please let me know. Thanks!



you need to use some server-side script to write the string to a file. You can send the json string to the server using dhtmlxAjax or any other method.

I see. Thank you!