Using json-rpc library