title: jqGrid json data
body: <p>Hello I have an example that works properly:</p>
  
  <pre><code>   $(function() { 
        $("#treegrid").jqGrid({ 
            url: 'tree2.json', 
            datatype: 'json', 
            mtype: 'GET', 
            colNames: ["ID", "Description", "Total"], 
            colModel: [{ 
                name: 'id', 
                index: 'id', 
                width: 1, 
                hidden: true, 
                key: true 
            }, { 
                name: 'desc', 
                index: 'desc', 
                hidden: false, 
                sortable: true 
            }, { 
                name: 'num', 
                index: 'num', 
                hidden: false, 
                sortable: true 
            }], 
            height: 'auto', 
            width: '500', 
            pager: "#ptreegrid", 
            caption: "Tree Grid Example" 
        }) 
    }); 
  </code></pre>
  
  <p>JSON data </p>
  
  <pre><code>{ 
      "page": 1, 
      "total": 1, 
      "records": 2, 
      "rows": [ 
         {"id": 1, "cell": ["1", "Source 1", "300"]}, 
         {"id": 2, "cell": ["2", "Source 2", "100"]}
      ] 
  } 
  </code></pre>
  
  <p>How to order jqGrid to read this type of JSON data? Is it possible?</p>
  
  <pre><code>{ 
      "page": 1, 
      "total": 1, 
      "records": 2, 
      "rows": [ 
         {"id": 1, "cell": {"id":"1", "desc":"Source 1", "num":"300"}}, 
         {"id": 2, "cell": {"id":"2", "desc":"Source 2", "num":"100"}}
      ] 
  } 
  </code></pre>
  
  <p>That is all
  Don't read next lines</p>
  
  <p>Sorry, this is some text to go through alerts:)
  Oops! Your question couldn't be submitted because:</p>
  
  <p>Your post does not have much context to explain the code sections; please explain your scenario more clearly.</p>
  
  <p>================
  Thanks fo help
  My final version is taken from your answers too</p>
  
  <pre><code>          jsonReader: {
                repeatitems: false,
            root: function (obj) { return obj; },
            page: function (obj) { return 1; },
            total: function (obj) { return 1; },
            records: function (obj) { return obj.length; }                  
            }
  </code></pre>
  
  <p>And I've changed JSON data</p>
  
  <pre><code>[ 
      {"id":"1", "desc":"Source 1", "num":"300"}, 
      {"id":"2", "desc":"Source 2", "num":"100"}
  ]
  </code></pre>
  
  <p>Thanks a lot!!!</p>