I have json :
{"files":[{"name":"1","size":"329"},{"name":"Spring","size":"153"},],"path":"C:\Programs"}
and store with jsonReader
var fileListStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy(connection),
baseParams: {
path: '',
action: ''
},
storeId: 'fileListStore',
autoLoad: true,
remoteSort: true,
reader: new Ext.data.JsonReader({
root: 'files',
fields: [
'name',
'size'
]
})
});
How have I change jsonReader to get json property 'path'? And how can I print it?