JSON RPC in jqGrid -


i developing web application communicates to/from server using json. use

var jsonstr = '{ name: "rob", time: "2pm" }'; jquery("#name").jqgrid({     type : "post",     url:'controllerservlet?jsondata='+jsonstr,     datatype: "json", 

to pass data server json string, parse in server, process , send json displayed in jqgrid.

this works me, wonder role of json-rpc; read used remote calls. there advantage in using json-rpc instead of using above way invoke servlet? how can use json-rpc same action?

as website states, json-rpc remote procedure call protocol specification using json. therefore specification call remote methods/procedures on server similar xml-rpc or java's rmi. both json-rpc , xml-rpc can use http underlying transport protocol can work others.

on other hand jqgrid , in general ajax uses http (ideally restful) requests fetch or transfer direct representations of e.g. json or xml encoded data. preferred way in javascript development (comparison of rest vs xml-rpc nice read , applies json-rpc well).


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -