title: JSON RPC in jqGrid
body: <p>I am developing a web application which communicates to/from a server using JSON. I use</p>
  
  <pre><code>var jsonStr = '{ name: "Rob", time: "2pm" }';
  jQuery("#name").jqGrid({
      type : "POST",
      url:'ControllerServlet?jsonData='+jsonStr,
      datatype: "json",
  </code></pre>
  
  <p>to pass data to server as JSON string, parse it in server, process it and send a JSON back which is displayed in the jqGrid.</p>
  
  <p>This works for me, but I wonder what is the role of JSON-RPC; I read that it is used for remote calls. Is there any advantage in using JSON-RPC instead of using the above way to invoke servlet? How can I use JSON-RPC to do the same action?</p>