How to get the content updated jstree to the alternative JSON format?

Hello. Updated jstree is a tree in which are loaded various items. The user can make various manipulations (rename, move, etc.). There is a button "save changes", the writing of the handler for which I am now doing.
Tell me how I can get the content updated jstree to the alternative json format (when dependencies are not displayed tree, and linear. For example, id=..., parent=..., text=...)?
July 2nd 19 at 13:53
1 answer
July 2nd 19 at 13:55
Solution
Found from the foreign colleagues:
$('#tree').updated jstree(true).get_json('#', { flat : true})

Find more questions by tags JavaScriptjQueryWeb DevelopmentJSONjsTree