I have a fairly standard JSON structure with multiple sub-arrays. When I load the data I want to be able to use the data loaded in multiple data grids - each linked to a separate data grids.
In the example JSON below I would have 2 grids, Users and Depts.

What I am trying to avoid is having to repeat the same JSONP call to create a new store with a different root and different fields.

My JSONP looks like:
callback({... "items" : [
"users" : [{id : 1234, "name" : "Mike"}, {id : 1122, "name" : "bill"}...],
"depts" : [{id : 1199, "Dept_name" : "Finance", "contact" : "Dave"}, ... ]
]})

I load my store :
mainStore = new Ext.data.JsonStore({
root: 'items[0].users',
fields: [ 'id', 'name'],
proxy: new Ext.data.ScriptTagProxy({
url: "myUrl"
})
});



Any help would be appreciated.