urcm
urcm

Reputation: 2284

ExtJS combo box data from json

i have json :

{"total":100, "category": [Village, City, School, HighSchool]}

for extjs combobox :

reader: new Ext.data.JsonReader({
root: 'category'},
[{name: 'category'}])

it not loods my data in it when i look in firebug it shows

thks for your help...

Upvotes: 0

Views: 741

Answers (1)

tcooc
tcooc

Reputation: 21269

I don't see the error that firebug shows, but your JSON is invalid. Try:

{"total":100, "category": ["Village", "City", "School", "HighSchool"]}
//values in array should be in double quotes

Upvotes: 1

Related Questions