Creating properly formatted JSON from PHP for use in grid



After searching through the forum I’m still having trouble understanding the best way to make use of JSON in dhtmlxgrid. I need to use smart rending since the dataset will be large and I have a PHP page that returns JSON using json_encode($some_dataset). The problem is that I don’t think that the JSON returned by PHP is in the format expected by .load(some_rul, “json”). Am I going about this the wrong way? Is there an efficient way to get the format converted? Is there some sample PHP code I could look at?

Can anyone help with this?



Please check example at the attachment. (421 Bytes)