I\'ve configured extjs store to load data from useragentstring.com api, this api return data like this
{\"agent_type\":\"Browser\",\"agent_name\":\"Opera\",\
It works for me when I don't set root or when I set it to undefined.
You may also extend Ext.data.reader.Json to adjust response to your needs. Example:
Ext.define('Ext.data.reader.JsonPWithoutRoot', {
extend: 'Ext.data.reader.Json',
read: function(response) {
return this.callParent([ { root: response } ]);
},
root: 'root'
});
And then in proxy define it like this:
proxy: {
type: 'jsonp',
callbackKey: 'method',
url: 'http://localhost/ext4/data3.php',
reader: Ext.create('Ext.data.reader.JsonPWithoutRoot', {})
}