Hi,

As far as I know, dojox.data.JsonRestStore expects to receive data in the form:
[
  {"prop1":"value1", "prop2":"value2", ...},
  {"prop1":"value1", "prop2":"value2", ...},
  ...
]

On the server side, I fetch data with a paginator (Zend_Paginator_Adapter_DbSelect). This paginator implements a toJson function. But whatever FETCH_MODE is used to get the data, I get a Json representation like this one:
{
  "0": {"prop1":"value1", "prop2":"value2", ...},
  "1": {"prop1":"value1", "prop2":"value2", ...},
  ...
}

Is there something obvious I miss or do I have to write my own implementation 
of the toJson() function?
--
Guillaume ORIOL
Software engineer
Technema

Reply via email to