View Full Version : JsonStore for JSON w/o keys

25 Mar 2011, 7:50 AM
I'm loading a ComboBox with data -- for example US States.

I don't want to send JSON in the form of

{"data": [{"state":"Alabama"}, {"state":"Hawaii"}, {"state":"New York"}]}

Instead, I'd like to send an array of just state names, no "state" key:

{"data": ["Alabama", "Hawaii", "New York"]}

Is this possible? I'm under the impression that in the JsonStore I need to have a fields property that set to the key name. In the first example it would be


What would it be in the second case?

25 Mar 2011, 10:10 AM

25 Mar 2011, 2:00 PM
You could write a custom Ajax request and then handle the store loading in it's success callback