Hi Team,

How to use the JsonTreeStore without the URL configuration.
In the following code I have entered the json data in data property but still it is asking for URL property.
Can some one help me how can I entered the data locally instead of seperate json file?

-----------------------------------------------------------
Ext.define('MyApp.store.MyJsonTreeStore', {
extend: 'Ext.data.TreeStore',


requires: [
'MyApp.model.MyModel'
],


config: {
data: {
text: 'Offices',
items: [
{
text: 'Atlanta Office',
items: [
{
text: 'Marketing',
items: [
{
text: 'David Smith',
leaf: true
},
{
text: 'Alex Wallace',
leaf: true
}
]
},
{
text: 'Sales',
items: [
{
text: 'Candice Adams',
leaf: true
},
{
text: 'Mike White',
leaf: true
}
]
}
]
},
{
text: 'Athens Office',
items: [
{
text: 'IT',
items: [
{
text: 'Baron Chandler',
leaf: true
},
{
text: 'Aaron Karp',
leaf: true
}
]
},
{
text: 'Executive',
items: [
{
text: 'Bryan Johnson',
leaf: true
},
{
text: 'John Clark',
leaf: true
}
]
}
]
}
]
},
model: 'MyApp.model.MyModel',
storeId: 'MyJsonTreeStore',
root: 'data',
proxy: {
type: 'ajax',
url: './test.json',
reader: {
type: 'json',
rootProperty: 'items'
}
}
}
});

----------------------------------

Regards,
Rajesh