JqGrid should be able to get the JSON data, but does not display and great point

The JSON data of my so

"invdata": [
"JKSBH": "002605726"
"JKSBH": "002605729"
"JKSBH": "002639348"
JqGrid are set up.

datatype: "json",
colNames:['Inv No','Date'],
{name:'invid',index:'invid', width:55},
{name:'JKSBH',index:'JKSBH', width:90},

jsonReader: {

repeatitems: false,
caption:"JSON Example"

But I jqGrid my JSON data. This is why.., or wrong... I pass JSON mode request expert advice

Started by Melody at November 11, 2016 - 5:51 PM

Your JSON is not in the correct format. Invid invdata data do not. Secondly, there is no "records", "total" invdata
Name is rows

Posted by Arnold at November 18, 2016 - 6:37 PM

Saying that I should return to what the format of the JSON data... The JSON data is the org.json.jar packets directly on the page.= =!

Posted by Melody at November 22, 2016 - 6:53 PM

Find a

Posted by Arnold at December 06, 2016 - 7:46 PM

I used his last the format of the JSON to jqGrid. Or the display can not.
Do not know is not the problem...
I directly on a JSP page write this
response.getWriter().write("{\"rows\":[" + result + "]}");
Is it right? Write jqGrid URL= "XXX.JSP"? Something's missing.?

Posted by Melody at December 09, 2016 - 8:35 PM

I put my JSON output directly without any code written in JSP.
JqGrid can display. This is why...

Posted by Melody at December 12, 2016 - 9:30 PM