Hi,
We are testing out dhtmlx. We are trying to interface with our product API, for such we are using JSON. We made an initial test using the gridconnector generating XML. it worked fine.
Now trying to switch to JSON. We already have the functioning layout.
We tried loading the json with the ,“json” argument. but the griid is always empty.
I tried the following json:
{
"rows": [
{
"id": "1421253",
"data": [
"531717",
"Nãoasasasasos",
null,
"2011-11-03 16:53:00",
"Enasasasasa",
"Dieasasos",
"MaS"
]
},
{
"id": "1421272",
"data": [
"532291",
"888 Teste",
"Cobraasasasida",
"2011-11-16 17:28:00",
"MED",
"1111111",
"aa"
]
}
]
}
Ultimately I’d want to use something more similar to a structured JSON, withour the “rows” aray, and the data aray within the rows array… would it be possible to accept something similar to what your JSONDataConnector outputs?
like so:
[
{
"id": "1421253",
"proto": "531717",
"tit": null,
"su": null,
"Data": "2011-11-03 16:53:00",
"st": "dfssdfdsf",
"nm": "Didsfdsfpos",
"es": "MS"
},
{
"id": "1421254",
"proto": "531711",
"tit": null,
"su": null,
"Data": "2011-11-03 17:34:00",
"st": "sssssssssdas",
"nm": "ssssss",
"es": "ss"
}
Thanks for all help. We have lots of places otuputting json already, having to change them all would be a pain. Having a way to parse this second model in the DHTMLX would be great.
So far we like the product very much. my co-worker has sent an email about this i think to the evaluation team, but if you can answer here to me its fine.