How to configure ExtJS 4 Store (proxy and reader) to read metadata
问题 My question is how to get metadata besides totalRecords, in my case it is version, code, searchquery (please look at json). { "result": { "version":"1", "code":"200", "searchquery": "false", "totalRecords": "2", "account":[ { "lastname": "Ivanoff", "firstname": "Ivan", "accountId":"1" }, { "lastname": "Smirnoff", "firstname": "Ivan", "accountId":"2" } ] } } Here is my model: Ext.define("test.Account", { extend: "Ext.data.Model", fields: [ {name: 'accountId', type: 'string'}, {name: 'lastname'