I have a returned VALID JSON response as follows:
[{"VegetableId":4,"VegetableCode":"001","CatalogId":14,"Name":"Carrot","Description":"The carrot is a root vegetable, usually orange in colour, though purple,
Please note that the above response is only part of it but as you can see that it does not have a rootElement. How can I consume this in Sencha Touch.
Here is my proxy code but it does not populate the model.
Ext.define('MyApp.store.Vegetables',{
extend:'Ext.data.Store',
config:{
model:'MyApp.model.Vegetable',
autoLoad:true,
proxy:{
type:'jsonp',
url:'theurltothejson',
reader:{
type:'json',
rootProperty:null
}
}
}
});
Thanks!