PDA

View Full Version : JSONStore can't read non-array rows?



whippersnapper
18 Jun 2010, 12:16 PM
Hi I have a query-services that retuns a JSON structure of the following:



{
"rows": {
"name": "name1",
"value": "value1"
}
}


My configured JSONStore does not like that structure. I think it's because there's now array wrapper around it []. If I'm in a scenario where I cannot manipulate the JSON structure from the query-services, how can one go about solving this issue?

CrazyEnigma
18 Jun 2010, 12:38 PM
Could you wrap it in an array? This has to be done on the backend.



{
"rows": []
}




{
"rows": [{
"name": "name1",
"value": "value1"
}]
}