In the store, I set the root of the reader as the βresultβ.
But in json_data I sent the attribute "children", for example:
{ "result": [{ "text": "\u041d\u043e\u0432\u043e\u0441\u0442\u0438", "leaf": true, "children": [] }, { "text": "\u0410\u043a\u0446\u0438\u0438", "leaf": true, "children": [] }, { "text": "\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438", "leaf": true, "children": [] }, { "id": "lang", "text": "\u042f\u0437\u044b\u043a", "leaf": false, "children": [{ "text": "\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b", "leaf": true, "children": [] }] }] }
But you need this:
{ "result": [{ "text": "\u041d\u043e\u0432\u043e\u0441\u0442\u0438", "leaf": true, "result": [] }, { "text": "\u0410\u043a\u0446\u0438\u0438", "leaf": true, "result": [] }, { "text": "\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438", "leaf": true, "result": [] }, { "id": "lang", "text": "\u042f\u0437\u044b\u043a", "leaf": false, "result": [{ "text": "\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b", "leaf": true, "result": [] }] }] }
So, Tree will load all the data into the TreePanel.