Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashish on May 17, 2009 21:51
open dhtmlx forum
JSON load issue

I am getting the response in following format but grid is not being updated.
{"rows":[{"id":326,"data":"[k,kjlk lj]"}]}

I tried both the function i.e.
mygrid.parse(data,"json"); //here data was in the above format
mygrid.load("url","json") //here url is also returning the data in the above format
but neither of them working.I have included all the necessary files.
Is the quote("") around the rows /data/id creating problem or am I missing something?

Thanks
Ashish
Answer posted by Support on May 18, 2009 02:56
You have an error in your json code, the valid one will be 
       {"rows":[{"id":326,"data":["k","kjlk lj"]}]}
the data is an array, so it must not have the quotes around brackets.

Sample of usage attached. 
Attachments (1)