title: How to read userData in jqgrid?
body: <p>I need to pass <code>userData</code> to <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs" rel="noreferrer">jqgrid</a>, but can't find any examples of how to do this.  Here's my attempt:</p>
  
  <p>Sent from the server:</p>
  
  <pre><code>{ total: 25,
    page: currentpage,
    userData: {foo: 'bar'},
    rows: myRows }
  </code></pre>
  
  <p>and in jqgrid:</p>
  
  <pre><code>var data = jQuery("#grid").getGridParam('userData');
  </code></pre>
  
  <p>How can I send <code>userData</code> and read it from jqgrid?</p>
  
  <p>EDIT: I know my <code>userData</code> is being sent, because I can see it in <a href="http://www.fiddler2.com/fiddler2/" rel="noreferrer">Fiddler</a>.  I think I'm just stuck on how to read it on the client side.</p>