The below given string is not getting displayed on my jqgrid
{"assignfix":{"sno":"1","fix":"Se2","templateName":"Restroom","profile":{"id":"11","name":"Restroom"}}}
But when I insert this
{"assignfix":[{"sno":"1","fix":"Sef2","templateName":"Restroom","profile":{"id":"11","name":"Restroom"}}]}
It gets displayed properly , it is the problem with single row only.
You don’t posted the definition of jqGrid which you use where the
jsonReaderorxmlReaderare important to know. In general I think you answered yourself indirectly on your question. If the value ofassignfixproperty should be array you should post the data as an array event if the array has one element or if it has no elements. It should be still array.