Sample: dhtmlxGrid Loading from JSON dhtmlxGrid main page
X

Grid allows to load data from JSON file and object.


Reload from JSON object
 
data={
    rows:[
        { id:1001,
        data:[
            "100",
            "A Time to Kill",
            "John Grisham"
        ] },
        { id:1002, 
         data:[
            "1000",
            "Blood and Smoke",
            "Stephen King",
        ] },
        ...
    ]
}
        
<div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div>
<script>
 
        mygrid = new dhtmlXGridObject('gridbox');
        ...
        /*loading from json*/
        mygrid.load("data.json","json");
        /*loading from JSON object*/
        mygrid.parse(data,"json");
</script>