I was able to resolve this exception(it was because JSON object was not building in proper format). but now I can not display the grid.
I also changed the grid model in java script according to database values now I have no error but everything is blank as we have not given in html where to pring the grid.