def _get_jsonrpc(self, rdata):
        if 'jsonrpc' in rdata:
            if rdata['jsonrpc'] == '2.0':
                return 20
            else:
                # invalid version
                raise InvalidRequestError
        else:
            # It's probably a JSON-RPC v1.x style call.
            if 'version' in rdata:
                if rdata['version'] == '1.1':
                    return 11

        # Assume v1.0.
        return 10
:return:
dataset/ETHPy150Open flowroute/txjason/txjason/service.py/JSONRPCService._get_jsonrpc--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_all_values_list