JSON-RPC server and client for any protocols