Defined function for JsonRPC over HTTP

Change-Id: I79a90367bf544a4e0efc8209b010a1e2e94bc103