JSON文字列で応答するHTTPサーバーがあります。彼らはこのように見えます:
{{
..。
"価値":{
"子供":[
{{
"パス": "KEY_518693"、
"名前": "KEY_518693"、
"children_count_overall":0、
"children_page":1、
"children_pages":1、
"children_pagesize":10
..。
}
]、
"children_count_overall":1、
"children_page":1、
"children_pages":1、
"children_pagesize":1、
"名前":null、
"パス":null、
..。
}
}
すべてのリクエストには親ノード(in "value")があり、これに対して私は子とこの子(in "children")をリクエストしました。また、いくつかのページング情報もあります。
親ノードが指定されていない場合は、仮想ルートノードの子としてルートノードを返します。
"root"プロキシのプロパティをに設定した"value"ので、プロキシはノードを検索する場所を認識しますがtree、TreeStoreのメンバーの後にload():の後に奇妙な構造があります。
tree: {
childNodes: [
{
childNodes: [], <-- no child?
data: {
children: [
{ ...the raw data of the "children" node (like in the example above)...}
],
... the data of the "value" node and some data from the implicit node model...
}
}
]
}
どういうわけか、のオブジェクトは"value"ノードに変換されてツリーに挿入されますが、"children"配列内のオブジェクトは変換されず、この"value"ノードのデータになります。