JsonRPC protocol implementation