My problem is that the json I get does not have a root. I can get the repository to load the URL and I return JSON, but the repository data is empty and nothing is displayed in the callback.
Json:
[
{
"symbol": "GM"
},
{
"symbol": "GA"
}
]
Model and store:
Ext.define('Symbol', {
extend: 'Ext.data.Model',
fields: ['symbol']
});
Ext.define('Doc.store.symbol', {
extend: 'Ext.data.Store',
model: 'Symbol',
proxy: {
type: 'jsonp',
url: 'datasource/symbol',
reader: {
type: 'json',
model: 'symbol'
},
}
});
I also tried removing the root, but nothing returned in the repository or callback. My googlefu does nothing good on json without root.
source
share