JsonRpc: bool->int in some methods