title: JqGrid not loading data from JSON
body: <p>I have a JQGrid plugin in my website, the table is loading OK, but with no-rows to edit, select or whatever. It is requesting the server because when i watch the log I see the request and it's parameters (sidx, _search, rows, sord, nd, etc).</p>
  
  <p>This is the jqgrid code:</p>
  
  <pre><code>$(document).ready(function() {
      var lastsel;
      jQuery("#rowed3").jqGrid(
              {
                  url : CONTEXT_PATH+'/ajax/getPartesByCategory.do?catid=&lt;s:property value="categoryId" /&gt;',
                  datatype: 'json',
                  colNames : [ 'piezaId', 'descripcion', 'disponible'],
                  colModel : [ {
                      name : 'piezaId',
                      index : 'piezaId',
                      align : "right",
                      width : 40
                  }, {
                      name : 'descripcion',
                      index : 'descripcion',
                      width : 360,
                      editable : true
                  }, {
                      name : 'disponible',
                      index : 'disponible',
                      width : 80,
                      editable : true
                  } ],
                  rowNum : 20,
                  rowList : [ 20, 40, 60, 80 ],
                  pager : '#prowed3',
                  sortname : 'id',
                  viewrecords : true,
                  sortorder : "desc",
                  onSelectRow : function(id) {
                      if (id &amp;&amp; id !== lastsel) {
                          jQuery('#rowed3').jqGrid('restoreRow', lastsel);
                          jQuery('#rowed3').jqGrid('editRow', id, true);
                          lastsel = id;
                      }
                  },
                  editurl : "server.php",
                  caption : "Piezas"
              });
      jQuery("#rowed3").jqGrid('navGrid', "#prowed3", {
          edit : false,
          add : false,
          del : false
      });
  })
  </code></pre>
  
  <p>This is the JSON that the server returns:</p>
  
  <pre><code>[{
    "piezaId": 486,
    "disponible": 1,
    "descripcion": "Asiento delantero LH",
    "category": {
      "categoryId": 2,
      "category": "Interior",
      "status": 1,
      "subCategories": []
    }
  }, {
    "piezaId": 485,
    "disponible": 1,
    "descripcion": "Asiento delantero RH",
    "category": {
      "categoryId": 2,
      "category": "Interior",
      "status": 1,
      "subCategories": []
    }
  }]
  </code></pre>
  
  <p>in the server side I'm using JAVA6, Struts2 and GSon to write the json, but for these ajax calls im only writing to the response a text/plain content</p>
  
  <p>Any help?</p>