How to make Json with flow model

How to make Json with flow model

Reference from
Drag and drop

After seeing this post i design a new flow model for drag and drop and it work's , but there is a problem i want to save the flow chart so i have to make json for it the desired json i want is
link of my fiddle fiddle
var sunny = {
                        "data":{
                            "id":"",
                        },
                        "key":"",
                        "module":"user",
                        "children":{}
                };
I want each  time i drop i want to make the json of flow model like
                      
                                           First i drag     Menu
                  
(second i drag)   Alpha            Beta             Alpha            Beta            Alpha 

how can i save in same format 

Like done in this fiddle fiddle