Trying to implement a jsonrpc communication