Threaded View

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    123
    Answers
    6
    Vote Rating
    6
    benjamineberle is on a distinguished road

      0  

    Default Answered: Serialize tree

    Answered: Serialize tree


    What is the recommended way to serialize a tree respectively treestore into json, so one can save the whole tree at once in localstorage, for example?

    I guess the resulting json should look like this to be able to re-use it directly:
    Code:
    root: {text: 'root', children: [
        {text: 'leaf1'},
        {text: 'leaf2', children: [
            {},
            {}, ...
        ]}
    ]
    This might seem obvious, but I can't find the answer from the docs or previous posts. Isn't there anything built-in? I have created my own iteration function, but I can't imagine such a common task has to be re-built every time someone needs that...?

    Thanks!

  2. Hopefully, tree nodes will get the serialize method in 4.2

    I have added it, just needs review and QA

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi